RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Iconv did it for me, a great thanks!!!

/Peter

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 28, 2006 11:12 PM
To: Peter Lauri
Cc: 'PHP General'
Subject: RE: [PHP] Convert UTF-8 to windows-874?

I think that the iconv function/package may have what you are looking
for...

This is just a parrot of previous answers to similar questions.

I have no personal knowledge...

You could also contact the Thai folks and find out if there is
anything "close enough" to Windows-874 to use.

>From my limited understanding, sometimes the difference between 2
encodings is sooo minor that you're only screwing up a couple
characters, and only a linguist cares. :-v

I also suspect that MS, in typical fashion, may have "stolen" (no!) a
character encoding, renamed it windows-874, and it's really really the
same thing as an OSS encoding of another name.

On Thu, September 28, 2006 7:16 am, Peter Lauri wrote:
> I think I am on the right track right now.
>
> There is a function mb_convert_encoding() that could be used. However,
> I
> have not found out how to code windows-874?
>
> Warning: mb_convert_encoding(): Unknown encoding "ISO-8859-11" in
> D:\webserver\viphavadee\sms\classes\sms.class.php on line 17
>
> Was one of my attempts...
>
> Anyone with a hint of how to work out this problem?
>
> /Peter
>
>
> -Original Message-
> From: Peter Lauri [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 28, 2006 5:10 PM
> To: 'PHP General'
> Subject: [PHP] Convert UTF-8 to windows-874?
>
> Hi group,
>
>
>
> I am having a site all encoded in UTF-8, and it works fine. I use AJAX
> a lot
> to send data back and forth to the server.
>
>
>
> I have one service that requires that I send the data in windows-874
> encoding (SMS gateway in Thailand). So is there anyway I can take the
> data
> that is UTF-8 and then convert it to windows-874 and then send it to
> the SMS
> gateway?
>
>
>
> Best regards,
>
> Peter Lauri
>
>
>
> www.lauri.se <http://www.lauri.se/>  - personal web site
>
> www.dwsasia.com <http://www.dwsasia.com/>  - company web site
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Richard Lynch
I think that the iconv function/package may have what you are looking
for...

This is just a parrot of previous answers to similar questions.

I have no personal knowledge...

You could also contact the Thai folks and find out if there is
anything "close enough" to Windows-874 to use.

>From my limited understanding, sometimes the difference between 2
encodings is sooo minor that you're only screwing up a couple
characters, and only a linguist cares. :-v

I also suspect that MS, in typical fashion, may have "stolen" (no!) a
character encoding, renamed it windows-874, and it's really really the
same thing as an OSS encoding of another name.

On Thu, September 28, 2006 7:16 am, Peter Lauri wrote:
> I think I am on the right track right now.
>
> There is a function mb_convert_encoding() that could be used. However,
> I
> have not found out how to code windows-874?
>
> Warning: mb_convert_encoding(): Unknown encoding "ISO-8859-11" in
> D:\webserver\viphavadee\sms\classes\sms.class.php on line 17
>
> Was one of my attempts...
>
> Anyone with a hint of how to work out this problem?
>
> /Peter
>
>
> -Original Message-
> From: Peter Lauri [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 28, 2006 5:10 PM
> To: 'PHP General'
> Subject: [PHP] Convert UTF-8 to windows-874?
>
> Hi group,
>
>
>
> I am having a site all encoded in UTF-8, and it works fine. I use AJAX
> a lot
> to send data back and forth to the server.
>
>
>
> I have one service that requires that I send the data in windows-874
> encoding (SMS gateway in Thailand). So is there anyway I can take the
> data
> that is UTF-8 and then convert it to windows-874 and then send it to
> the SMS
> gateway?
>
>
>
> Best regards,
>
> Peter Lauri
>
>
>
> www.lauri.se   - personal web site
>
> www.dwsasia.com   - company web site
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
Hi,

I was on the right track. However, the mbstring does not seam to support
windows-874 (ISO-8859-11).

What is the next step I could take? One not the good is to convert the whole
system to Windows-874 and use that, but that is not so fun. Please help me
:)

Best regards,
Peter Lauri



-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 28, 2006 7:16 PM
To: 'Peter Lauri'; 'PHP General'
Subject: RE: [PHP] Convert UTF-8 to windows-874?

I think I am on the right track right now.

There is a function mb_convert_encoding() that could be used. However, I
have not found out how to code windows-874?

Warning: mb_convert_encoding(): Unknown encoding "ISO-8859-11" in
D:\webserver\viphavadee\sms\classes\sms.class.php on line 17

Was one of my attempts...

Anyone with a hint of how to work out this problem?

/Peter


-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 28, 2006 5:10 PM
To: 'PHP General'
Subject: [PHP] Convert UTF-8 to windows-874?

Hi group,

 

I am having a site all encoded in UTF-8, and it works fine. I use AJAX a lot
to send data back and forth to the server.

 

I have one service that requires that I send the data in windows-874
encoding (SMS gateway in Thailand). So is there anyway I can take the data
that is UTF-8 and then convert it to windows-874 and then send it to the SMS
gateway?

 

Best regards,

Peter Lauri

 

www.lauri.se <http://www.lauri.se/>  - personal web site

www.dwsasia.com <http://www.dwsasia.com/>  - company web site

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Convert UTF-8 to windows-874?

2006-09-28 Thread Peter Lauri
I think I am on the right track right now.

There is a function mb_convert_encoding() that could be used. However, I
have not found out how to code windows-874?

Warning: mb_convert_encoding(): Unknown encoding "ISO-8859-11" in
D:\webserver\viphavadee\sms\classes\sms.class.php on line 17

Was one of my attempts...

Anyone with a hint of how to work out this problem?

/Peter


-Original Message-
From: Peter Lauri [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 28, 2006 5:10 PM
To: 'PHP General'
Subject: [PHP] Convert UTF-8 to windows-874?

Hi group,

 

I am having a site all encoded in UTF-8, and it works fine. I use AJAX a lot
to send data back and forth to the server.

 

I have one service that requires that I send the data in windows-874
encoding (SMS gateway in Thailand). So is there anyway I can take the data
that is UTF-8 and then convert it to windows-874 and then send it to the SMS
gateway?

 

Best regards,

Peter Lauri

 

www.lauri.se   - personal web site

www.dwsasia.com   - company web site

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php