Now we export WITHOUT the UTF8 -option
File reads like:
CODE
insert into `nn` (`id`,`english_letters`,`danish_letters`) values (0,'ABCabc','ÆØÅæøå');
Executing this from the editor is OK. Importing from a file with the UTF8 options is also OK (as written in previous post).
However importing the file without the UTF8 -option garbles data.
If the file has NO 'SET NAMES' statement it becomes garbage
Also if file contains 'SET NAMES latin1' it becomes garbage
(all defaults are 'latin1' so this is nothing new!)
but if file contains 'SET NAMES utf8' it imports OK.
now 'ÆØÅæøå' is a valid latin1 string ???
and from the editor I can 'SET NAMES' anything where 'ÆØÅæøå' is a valid string (latin1, utf2, ucs2) and it saves OK!
On this system:
CODE
show variables like '%character%';
/*returns
Variable_name Value
------------------------ ----------------------------------------------------
character_set_client latin1
character_set_connection latin1
character_set_database latin1
character_set_results latin1
character_set_server latin1
character_set_system utf8
character_sets_dir C:\Programmer\MySQL\MySQL Server 4.1\share\charsets/
*/