You are here: Parsing UTF-8 string with XSLT « PHP Programming Language « IT news, forums, messages
Parsing UTF-8 string with XSLT

Posted by Benzari.Alex@gmail.com on 10/22/25 11:39

Hello, the majority of my sites use PHP MYSQL and XSLT for dynamic
pages and all of it works ok for English characters. The problem begins
when I try to use Romanian or Russian characters while creating the XML
string.

What I used to do is:
1) Query the MYSQL database that is UTF-8 (the conection is also set by
a query to UTF-8)
2) Create a XML string in PHP using the query results
3) Transform the XML string using a XSLT parser

As I said it all works ok with the English data but when I try using
Russian instead of letters I get question signs. If I try to echo the
Russian text when creating the XML data it is displayed correctly, so
the problem is in the XML string that is somehow not UTF-8 encoded or
what??

Can someone help me?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация