Re[4]: [PHP] ANSI to ISO-8859-2

2008-09-23 Thread Bc. Radek Krejca
Hi, this is working but I would like better solution: function Decode_String($text) { $from = Array("Á", "á", "Č", "č", "Ď", "ď", "É", "é", "Ě", "ě", "Í", "í", "Ň", "ň", "Ó", "ó", "Ř", "ř","Š", "š", "Ť", "ť", "Ú", "ú", "Ů", "ů", "Ý", "ý", "Ž", "ž"); $to = Array("Á", "á", "Č", "č", "Ď", "ď", "

Re: Re[2]: [PHP] ANSI to ISO-8859-2

2008-09-22 Thread Per Jessen
Bc. Radek Krejca wrote: > PJ> ANSI is not a character set, it's a standards organisation. You > may PJ> have meant ASCII, and the string does look as if it could be > ASCII. > PJ> The sequences like &#xNNN are HTML-style symbolic entities. Take > a PJ> look at htmlentities(). > > This function

Re[2]: [PHP] ANSI to ISO-8859-2

2008-09-22 Thread Bc. Radek Krejca
PJ> ANSI is not a character set, it's a standards organisation. You may PJ> have meant ASCII, and the string does look as if it could be ASCII. PJ> The sequences like &#xNNN are HTML-style symbolic entities. Take a PJ> look at htmlentities(). This function encode strings, but I tried html_entit

Re: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Per Jessen
Robert Cummings wrote: > On Fri, 2008-09-19 at 09:39 +0200, Per Jessen wrote: >> Bc. Radek Krejca wrote: >> >> > Hello, >> > >> > I get from webservice strings like this: >> > >> > Česko anglické gymnázium >> > >> > I think, that is ANSI, but how to convert it to something else >> > (t

Re: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Robert Cummings
On Fri, 2008-09-19 at 09:39 +0200, Per Jessen wrote: > Bc. Radek Krejca wrote: > > > Hello, > > > > I get from webservice strings like this: > > > > Česko anglické gymnázium > > > > I think, that is ANSI, but how to convert it to something else (the > > best is iso-8859-2). I am trying

Re[2]: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Bc. Radek Krejca
Hello, PJ> ANSI is not a character set, it's a standards organisation. You may PJ> have meant ASCII, and the string does look as if it could be ASCII. PJ> The sequences like &#xNNN are HTML-style symbolic entities. Take a PJ> look at htmlentities(). Yes, youre right, my mistake, of course that

Re: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Per Jessen
Bc. Radek Krejca wrote: > Hello, > > I get from webservice strings like this: > > Česko anglické gymnázium > > I think, that is ANSI, but how to convert it to something else (the > best is iso-8859-2). I am trying iconv function, but ANSI parameter > is not supported. ANSI is not a c

[PHP] ANSI to ISO-8859-2

2008-09-19 Thread Bc. Radek Krejca
Hello, I get from webservice strings like this: Česko anglické gymnázium I think, that is ANSI, but how to convert it to something else (the best is iso-8859-2). I am trying iconv function, but ANSI parameter is not supported. Thank you Radek -- Regards, Bc. Radek Krejca ICQ: