May 5, 2006 kl. 5:43 PM skrev [EMAIL PROTECTED]:
Anyway, the real problem here is probably that the SaveAsJPEG
method is not unicode-savvy. But that shouldn't matter unless
you're trying to save a file name that can't be represented in the
default system encoding (probably MacRoman). Your mail got a bit
garbled, so I can't tell if that's what you're trying to do. Can
you back up and describe what sort of text you're entering for a
file name, and what sort of file name is actually appearing on disk?
Best,
- Joe
Hi,
I changed my OS to Swedish and do an test:
I changed to create an text file, and then it works with this code.
dlg.InitialDirectory= SpecialFolder.Desktop
dlg.promptText="Where do you want to save your picture?"
dlg.SuggestedFileName= "Namnlös.jpg"
dlg.Title="Save a folder example"
dlg.Filter="Image/jpeg"
f=dlg.ShowModal()
If f <> Nil then
'f.SaveAsJPEG pic
OutFile = f.CreateTextFile
OutFile.Write "1111"
OutFile.Close
//file saved
Else
//user canceled
End if
BUT:
When I use f.SaveAsJPEG pic it fails.
The debugger showing the dlg.suggestedFileName as UTF-8, and display
the text correct.
And the SaveAs Dialog is showing the file name correct.
But the filename on the Desktop is not correct.
Regards,
Sven E
_______________________________________________
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>