Well, you should take the DefineEncoding out of this line:

 dlg.SuggestedFileName=DefineEncoding("Namnlös.jpg",Encodings.UTF8)

You should NEVER use DefineEncoding on a string literal; at best it will do nothing, and otherwise it will garble the string. In this case, it should do nothing, but take it out just to be sure.


Ok, I will do that, in this case it was just a test to see if there where any difference.


Also, this report doesn't reference SaveAsJPEG. It claims that the problem is in the SaveAsDialog, but that seems very unlikely -- it's the old QuickTime calls (used by SaveAsJPEG) which are not Unicode-savvy. What if you save your file using f.CreateTextFile, for example? I bet it works fine then.



But I really need SaveAsJPEG. The same problems occur when I use QTGraphicsExporter (which I also need), so I think you are right about quicktime.
When I  created a text file there where no problems.


I changed the report name to "Filenames have incorrect textencoding when using SaveAsJPEG and QTGraphicsExporter".

But I still need a workaround...

Thank you for your help!

Arne


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to