Jump to content

Problems with UTF8 and XML file generating


itamar

Recommended Posts

Hello guys , I've been reading articles here for a lot of time , but never needed anything ... now it is time :)

I'm building a system for generating reports in flash ... the data is generated from SQL in php
and is being inserted into an XML file which I generate through php...

basically the flash swf file is intened to receive the xml file as input , but it seems so that it can't receive it if I dont make the xml file utf8 ... the php file is ISO-8859-8 (ANSI) and the strings which appear inside the XML file are in hebrew...

basically the flash shows all the data correctly , except for the hebrew strings which in original (in MySQL) sit in an UTF-8 collation.

so basically they arrive inside the php file as variables in ANSI and the XML string , before being written into a file , is also ANSI , due to the php file being ANSI.

once I try writing it as is (ANSI) , into the xml file, the flash dont work.. only if I do utf8_encode , on the xml string before writing to the file.. it works.

but it works with the loss of the hebrew letters into gibrish..

if anyone can help me get the special hebrew chars to the right mode.. please do
I'm on a short deadline! ;(
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.