Re: convert (windows-1250) to (utf-8)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux