note 96664 modified in function.iconv by danbrown

From: Date: Wed, 10 Mar 2010 18:00:05 +0000
Subject: note 96664 modified in function.iconv by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166868@lists.php.net to get a copy of this message
if you want to access a MSSQL-Server you get the Data in UCS-2. UCS-2 is under a Linux System Latin1! Converting UCS-2 to UTF8: <?php $result = iconv("Latin1","UTF-8",$mystring); ?> Converting UTF8 to UCS-2: <?php $result = iconv("UTF-8","Latin1",$mystring); ?> --was-- if you want to access a MSSQL-Server you get the Data in UCS-2. UCS-2 is under a Linux System Latin1! Converting UCS-2 to UTF8: $result = iconv("Latin1","UTF-8",$mystring); Converting UTF8 to UCS-2: $result = iconv("UTF-8","Latin1",$mystring); http://php.net/manual/en/function.iconv.php

« previous php.notes (#166868) next »