Submiting UTF-8 XML via POST

This is a discussion on Submiting UTF-8 XML via POST within the PHP General forums, part of the PHP Programming Forums category; Hi, I'm having a problem with encodings and form submission using PHP. (All my scripts are in UTF-8 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-21-2004
S?rgio Nunes
 
Posts: n/a
Default Submiting UTF-8 XML via POST

Hi,

I'm having a problem with encodings and form submission using PHP.

(All my scripts are in UTF-8 with the correct declaration in the HTML
header.)

* I have a XML document in UTF-8.
* Using GET edit.php, I read the file (using file_get_contents) and
present it in a textarea within a HTML form.
* When the form is submited with POST edit.php, I store it in the same
file.

The problem is: even without any editing (just submit), the data in
the file gets corrupted. Only a few characters are stored wrongly. I
still haven't figured out what characters are causing the problem but
"//////" symbols are added to it.

I'am not using any of the utf8_(dec)encode functions.

Any help would be greatly appreciated.

Thanks in advance,
Sérgio Nunes
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0