Bug #5743 Can't save the exported resultset file to the directory with Japanese
Submitted: 25 Sep 2004 4:42 Modified: 5 Nov 2004 18:03
Reporter: Shuichi Tamagawa Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.0.7-beta OS:Windows (Win XP / SP2)
Assigned to: Michael G. Zinner CPU Architecture:Any

[25 Sep 2004 4:42] Shuichi Tamagawa
Description:
When exported query result to the direcotory with Japanese name the file is not save in the specified directory and saved in the parent directory. And the file name is get garbled.

Example:
If I saved the file as "C:\Documents and Settings\user\XXX\test.csv" where XXX is Japanese characters, the file is found in "C:\Documents and Settings\user" directory with the file name "YYYtest.csv". (YYY = XXX converted to UTF8 encoding and displayed in Shift-JIS. So it is getting garbled)

How to repeat:
Execute any query in Query Browser.
Right click on the result area.
Export Result -> Export As CSV File... (HTML,XML,Excel)
Select the directory in Japanese and save.

Suggested fix:
When I save a query or a script from "Save as.." menu, the file is saved even in the directory with Japanese name. So save the file like this.
[5 Nov 2004 18:03] Michael G. Zinner
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html