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
This works great. Thanks. Jochem Maas wrote: 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};

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