I have a database that is UTF-8, InnoDB engine and .
When I export the data using HeidiSQL the data gets mangled from:
서버에서 응답
to:
서버ì—ì„œ ì‘답
An ideas of what's up?
Exporting UTF-8 database, data gets mangled?
Should not be the case, unless you're using an older build, or the 4.0 release?
Second thing is, you surely need to view the exported file using a Unicode capable text editor (HeidiSQL's query editor, or just Notepad is fine). Heidi writes UTF-8 files without BOM, which then requires any reader to detect the file encoding. Never saw an editor which cannot do that, but who knows which one you're using?
Second thing is, you surely need to view the exported file using a Unicode capable text editor (HeidiSQL's query editor, or just Notepad is fine). Heidi writes UTF-8 files without BOM, which then requires any reader to detect the file encoding. Never saw an editor which cannot do that, but who knows which one you're using?
My MySQL version is: 5.1.41
My HeidiSQL version is: 5.0.0.3100
CREATE TABLE Statement:
# Dumping structure for table database.language_korean
CREATE TABLE IF NOT EXISTS `language_korean` (
`language_string_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'The ID of the language string',
`language_string_name` text NOT NULL COMMENT 'The Name of the language string',
`language_string_text` text NOT NULL COMMENT 'The Text of the language string',
`language_string_type` text NOT NULL COMMENT 'The Type of language string',
`language_string_date_time_edited` datetime NOT NULL COMMENT 'The Date Time last edited of the language string',
PRIMARY KEY (`language_string_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
My HeidiSQL version is: 5.0.0.3100
CREATE TABLE Statement:
# Dumping structure for table database.language_korean
CREATE TABLE IF NOT EXISTS `language_korean` (
`language_string_ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'The ID of the language string',
`language_string_name` text NOT NULL COMMENT 'The Name of the language string',
`language_string_text` text NOT NULL COMMENT 'The Text of the language string',
`language_string_type` text NOT NULL COMMENT 'The Type of language string',
`language_string_date_time_edited` datetime NOT NULL COMMENT 'The Date Time last edited of the language string',
PRIMARY KEY (`language_string_ID`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
While I was playing around with different unicode writers I suddenly saw that Notepad is the only editor which displays the korean characters as intended:
Apart from Notepad I checked the query editor in HeidiSQL itself and Notepad++ which both display broken chars, like here:
As these chars looks fine in data grids of HeidiSQL, my guess is now that only file loading has a bug here. Not only in Heidi, but also in Notepad++. Good old Notepad obviously has a better working encoding detection here.
Apart from Notepad I checked the query editor in HeidiSQL itself and Notepad++ which both display broken chars, like here:
As these chars looks fine in data grids of HeidiSQL, my guess is now that only file loading has a bug here. Not only in Heidi, but also in Notepad++. Good old Notepad obviously has a better working encoding detection here.
Ah... no no everything alright here. HeidiSQL and Notepad++ display broken characters because my selected font (Courier New) doesn't include korean chars. When I select a different one, e.g. "Segeo UI", the chars are displayed as intended:
I'll commit a change so that it is possible to select non-fixed fonts via Tools > Preferences > SQL.
I'll commit a change so that it is possible to select non-fixed fonts via Tools > Preferences > SQL.
Thanks anse,
I've confirmed at my end that I now have it appearing correctly in my other Unicode editor (phpDesigner) using the font 'Consolas'.
As you suggested being able to select non-fixed fonts via Tools > Preferences > SQL would be awesome for UTF-8 developers.
Thanks for the help
I've confirmed at my end that I now have it appearing correctly in my other Unicode editor (phpDesigner) using the font 'Consolas'.
As you suggested being able to select non-fixed fonts via Tools > Preferences > SQL would be awesome for UTF-8 developers.
Thanks for the help
Please login to leave a reply, or register at first.