简体   繁体   English

从MySQL读取记录集的特殊字符问题

[英]Special character issue with recordsets read from MySQL

I have recordsets in my MySQL database like this (in german): 我的MySQL数据库中有这样的记录集(德语):

Karrieren im Portrait: Interview mit Thorsten Franck – „Ich liebe Produkte“ Karrieren im Portrait:托斯滕·弗兰克访谈录–“ Ich liebe Produkte”

Now when I get the data with the MySQL connector reader and write it into an xml file I get just this: 现在,当我使用MySQL连接器读取器获取数据并将其写入xml文件时,我得到的是:

Karrieren im Portrait: Interview mit Thorsten Franck Ich liebe Produkte Karrieren im Portrait:托斯滕·弗兰克·艾奇·利贝·普罗德克特的访谈

As you (hopefully) can see, the minus (it's one of those long ones) and the upper and lower quote signs are not shown. 正如您(希望如此)所看到的,负号(这是长号之一)以及上下引号都没有显示。

The table is defined as UTF-8, the output of the xml file also. 该表定义为UTF-8,也是xml文件的输出。

Any idea how I could solve this problem? 知道如何解决这个问题吗? Thanks in advance! 提前致谢!

Alex 亚历克斯

in mysql show variables like '%char%' , is it all utf-8? 在mysql中show variables like '%char%' ,是否都是utf-8?

in php connection to mysql, use mysql_set_charset to utf-8 在与mysql的php连接中,使用mysql_set_charset到utf-8

http://forums.asp.net/t/1619144.aspx?collation+and+charset+Problem+In+MySql http://forums.asp.net/t/1619144.aspx?collat​​ion+and+charset+Problem+In+MySql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM