[PHP] PHP, mbstring, UTF-8 and indexing strings

2007-06-24 Thread delsvr
, and this is necessary for my purposes because I need to do work on each character. Also, by character I mean, for example: 我. Thanks, delsvr -- View this message in context: http://www.nabble.com/PHP%2C-mbstring%2C-UTF-8-and-indexing-strings-tf3972397.html#a11275585 Sent from the PHP - General mailing list archive

Re: [PHP] PHP, mbstring, UTF-8 and indexing strings

2007-06-24 Thread Jochem Maas
delsvr wrote: Just a simple question (with a simple answer, hopefully): how can I access character x of a utf-8 encoded string? i.e. how would I get this to work: for($x=0; $x strlen($utf8); $x++) echo character {$x}: . $utf8{$x}; Keep in mind that I have strlen overloaded by mbstring,

Re: [PHP] PHP, mbstring, UTF-8 and indexing strings

2007-06-24 Thread delsvr
://www.php.net/unsub.php -- View this message in context: http://www.nabble.com/PHP%2C-mbstring%2C-UTF-8-and-indexing-strings-tf3972397.html#a11280535 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] PHP, XML, UTF-8

2003-12-08 Thread Russell P Jones
anyone know how I could do this automatically, as in is there anything that will convert a string to UTF-8 automatically ideally $fixed = convert-to-utf($oldmessedupstring) any ideas? Will CDATA sections allow non UTF-8 text? Russ Jones -- PHP General Mailing List (http://www.php.net

RE: [PHP] PHP and UTF-8

2002-11-13 Thread Carlos
;wiltgen.net] Sent: Wednesday, November 13, 2002 12:48 AM To: List ? PHP General Subject: Re: [PHP] PHP and UTF-8 Gerard Samuel wrote... Do you store this utf-8 stuff only in xml files?? Do you use a database? I was under the impression that mysql doesn't support utf-8 Yeah, that would

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Charles Wiltgen
Hello, I anyone out there using UTF-8 for files and databases? I want to use it for everything, and it'd be a major hassle if PHP's UTF-8 support was super- dependent on underlying OS issues, so any feedback is appreciated. -- Charles Charles Wiltgen wrote... How mature is PHP's support for

Re: [PHP] PHP and UTF-8

2002-11-12 Thread jacob
I utf8_encode and utf8_decode all data that I put into XML files. The application is on a large site so it is thoroughly tested and has encoded and decoded data without problems. I have run the application on Linux Slackware and FreeBSD. Quoting Charles Wiltgen [EMAIL PROTECTED]: Hello, I

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Gerard Samuel
Do you store this utf-8 stuff only in xml files?? Do you use a database? I was under the impression that mysql doesn't support utf-8 [EMAIL PROTECTED] wrote: I utf8_encode and utf8_decode all data that I put into XML files. The application is on a large site so it is thoroughly tested and has

Re: [PHP] PHP and UTF-8

2002-11-12 Thread Charles Wiltgen
Gerard Samuel wrote... Do you store this utf-8 stuff only in xml files?? Do you use a database? I was under the impression that mysql doesn't support utf-8 Yeah, that would be a problem. I didn't think MySQL would be an issue, and I'll investigate... -- Charles Wiltgen -- PHP General

[PHP] PHP and UTF-8

2002-11-07 Thread Charles Wiltgen
Hello, How mature is PHP's support for UTF-8, real-world? Is it ubiquitous enough to use for commercial applications that'll be running on systems that you don't configure yourself? From the notes in the documentation, it sounds like there are dependencies on the underlying OS, and that I