[FX.php List] Encodings

Steve Hannah shannah at sfu.ca
Sun Jul 23 08:19:23 MDT 2006


This is really a limitation in PHP more than anything as it doesn't  
natively support multi-byte strings.  However there are some  
solutions available.

1.  Use the mbstring extension for PHP (it would have to be compiled  
into your PHP):
http://www.php.net/mbstring

2. Use the I18N_UnicodeString PEAR class to convert the strings:
http://pear.php.net/package/I18N_UnicodeString

Hope this helps.

Best regards

Steve
----------------------------------------
Steve Hannah
Web Services Developer

Faculty of Applied Sciences
Simon Fraser University
shannah at sfu.ca
604-268-7228
Homepage: http://www.sjhannah.com
--
Need to build a database driven web application quickly?
Try Dataface: http://fas.sfu.ca/dataface



On 23-Jul-06, at 3:55 AM, Thes Quid wrote:

> Hi everyone!
>
> I'm using the output from FX.php to create excel files, but it  
> seems FX outputs DCR (decimal character representation [like &#09880].
> (I'm using lots of different languages mixed together, like chinese/ 
> russian/english)
> Excel only likes utf-16. When I use the php Spreadsheet/Write/Excel  
> PEAR class, it works fine, but that dies if the excel is too big.
> The perl module (upon which the php module is based) can handle  
> such sizes, but it doesn't convert like the php module does.
> Question:
> Is there a way to tell FX to output utf-16 instead of DCR (also  
> know as NCR numerical char rep)?
> Does anyone know a way to convert from DCR to utf-16? In php or  
> perl, it doesn't matter.
>
> thanks,
>
> Dana L. Coe
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>



More information about the FX.php_List mailing list