GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 28-Oct-2004, 06:22
FranKieCZ FranKieCZ is offline
New Member
 
Join Date: Oct 2004
Posts: 1
FranKieCZ is on a distinguished road
Question

XML parser in PHP5


Hi,
I have a "little" problem with PHP5 and XML. The problem is when I parse XML via PHP5 the result output is without non-US Ascii letters;
example of XML file:
<something>blabla 'some non-US Ascii letter (examp.:some chinese letter)'</something>
How to solve this?In XML file I used UTF-8 encoding in function xml_parser_create I choosed UTF-8 encoding also but result is bad! Exactly I need use Windows-1250 encoding (for Czech language). In PHP4 is no problem with this, problem is only in PHP5 (last stable release - 5.0.1).
And next problem is when I want to parse this:
<something>
bla <bla> bla
</something> (I used entities for < and > (but in this forum is automatically translate into character) but PHP5 XML parser still thinks that is start of new tag)
and I want this output: bla<bla>bla but in PHP5 output is bla and nothing more. Why?
Please help me if u know, thx very much
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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 On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help in writing a parser program nkhambal C Programming Language 0 02-Aug-2004 22:06
problem with php5 cgi installation fab13 Apache Web Server Forum 3 19-Nov-2003 10:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 15:05.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.