Thanks, but are you sure of that? I did some research a while ago and found
that officially PHP files should be ascii and not have any specific
character encoding. I believe it will work anyhow (did not try this one),
but would like to stick with the standards.
"Ashley Sheridan" <a...@ashleysheridan.co.uk> wrote in message
> On Wed, 2010-05-26 at 22:20 +0800, Guus Ellenkamp wrote:
>> We use PHP defines for defining text in different languages. As far as I
>> know PHP files are supposed to be ASCII, not UTF-8 or something like
>> What I want to make is a conversion program that would convert a given
>> file with the format
>> definetext1=this is a text in random UTF-8, probably arabic or similar
>> definetext2=this is another text in random UTF-8, probably arabic or
>> into a file with the following defines
>> Not sure if I'm using the correct chr/ord function, but I hope the above
>> clear enough to make clear what I'm looking for. Basically the output
>> should be ascii and not contain any utf-8.
>> Any advise? The html_special_chars did not seem to work for Vietnamese
>> I tried to convert, so something seems to get wrong with just reading an
>> array of strings and converting the strings and putting them in defines.
> PHP files can contain utf-8, and in-fact is the preference of most
> developers I know of.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php