You are here: Re: Preserving Chinese Characters when reading and writing text « PHP Programming Language « IT news, forums, messages
Re: Preserving Chinese Characters when reading and writing text

Posted by Mike P2 on 05/31/07 20:05

On May 31, 11:11 am, Clive Green <e...@clivegreen.com> wrote:
> Hello peeps,
>
> I am using PHP 5.2.2 together with MP3_Id (a PEAR module for reading and
> writing MP3 tags). I have been using PHP on the command line (Mac OS X
> Unix shell, to be precise), and am getting on more or less OK.
>
> So far, I have managed to parse my tab-delimited .txt file properly into
> an array, and then use this array to update the tags on a bunch of MP3
> audio files. Nice.
>
> Thing is, some of the track names specified in my text file are in
> Simplified Chinese characters. These show up just fine within my .txt
> file's editor (TextMate), but appear garbled within the final output.
> Ack.
>
> What I need is a way of reading and/or preserving the Chinese
> characters, so that I can (hopefully) write them to my MP3 files.
>
> I am sure some of you have already cracked this one a long time ago. I
> hope you'll exercise some patience and give me a few pointers here!
>
> I am not much more than a PHP newbie, so forgive me if I have overlooked
> anything obvious :-)
>
> --
> Clive Green

Play with encoding choices. UTF-8 for both the text file and the PHP
functions you use if possible.

-Mike PII

 

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

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