Re: convert (windows-1250) to (utf-8)
| From: | Alain Roger | Date: | Sun, 12 Aug 2007 07:25:22 +0000 |
| Subject: | Re: convert (windows-1250) to (utf-8) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260724@lists.php.net to get a copy of this message | ||
and why not :
$out = iconv('windows-1250','UTF-8', $in); ???
Alain
On 8/12/07, brian <phplist@subtropolix.org> wrote:
>
> Alain Roger wrote:
> > Hi,
> >
> > I import a csv file (which includes characters from "windows-1250"
> charset)
> > to postgreSQL database which is in UTF-8.
> > How can i convert windows-1250 to utf-8 charset ?
> >
>
> Try the iconv functions:
>
> http://www.php.net/manual/en/function.iconv.php
>
> $out = iconv('ISO-8859-2', 'UTF-8', $in);
>
> This page may be of use, as well:
> http://en.wikipedia.org/wiki/Windows-1250
>
> "Windows-1250 is *similar* to ISO-8859-2 ..."
>
> brian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.3
Apache 2.2.4
PHP 5.2.3