On May 05, 2006, at 16:39 UTC, Arne wrote:
> The problem occurs when I'm entering the last 3 letters in the Swedish
> alphabet, please look at the report ( Report id: iwrlzwfo ) since my
> mail look "garbled" as you said.
>
> http://www.realsoftware.com/feedback/viewreport.php?reportid=iwrlzwfo
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.
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.
HTH,
- Joe
--
Joe Strout -- [EMAIL PROTECTED]
Available for custom REALbasic programming or instruction.
_______________________________________________
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>