--- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Here is a nice one... I think I am doing something
> wrong, but I just can�t
> figure out what or where...
>
> I need to download an XML-file from an Oracle-server
> hosted on a webserver.
> The file I receive is around 800 kb in size,
> downloading works like a
> charm...
>
> But... When I open the file in Explorer, halfway
> there is a special char
> which prevents loading the rest of the XML-file.
> When I open this downloaded file in Notepad, there
> indeed is a special char
> (the � in Spanish text for instance).
>
> Saving in Notepad, you have an option �Encoding�.
> When choosing UTF-8 as the
> encoding and saving this file, Explorer opens the
> XML-file without any
> problems...
>
> So... How do I download an amount of XML-data from a
> database and save the
> file with UTF-8 encoding?
>
> Seems so simple, maybe I should get a real job,
> because I don�t seem to get
> this part working :-((
>
> Who saves my life, somebody.... pleaseeeeeeeee.....
>
> Ton Kuypers
>
Hi Ton,
Untested, but seems logical enough :
put uniEncode(tXMLData,"UTF8") into \
URL("file:" & tFilePath)
You may also have to change your xml data a bit so it
contains
<?xml encoding="UTF-8" ?>
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La
Rochefoucauld)
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution