larskanis/fxruby

Bad Encoding in FXFileDialog

Closed this issue · 5 comments

I use ruby‘s " String.encode" to solve code problems, and it works in many situations, Chinese character can be shown correctly. But when using FXFileDialog, I still found that any not-English character can not be shown correctly.It may be Fox's problem,but I still hope you can help with this problem. Thank you

By the way,I am working on Windows10 pro, ruby 2.2.3 p173 x64-mingw32

I called the file dialog with codes like this

#save_file(path) only saves text to path
#utf8_encoding, local_encoding can convert the codes
#PATTERN is the pattern..... 
save_file(utf8_encoding(FXFileDialog.getSaveFilename(self, local_encoding(VOCAB.file_save_dialog_title), "", PATTERN)))

And the screenshot: (The underline words are strange character. They were Chinese characters....)

All my ruby source files are encoded with utf-8,and #encoding:utf-8

I close the issue because of the deeply disappointment.

I understand the feeling. I had to build my own dialog box in order to show those characters correctly.