warmwinter / hessianphp

Automatically exported from code.google.com/p/hessianphp
MIT License
0 stars 0 forks source link

UTF-8 decoding option #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
On our web servers running Apache and unfortunately is not set 
mbstring.internal_encoding to UTF-8. We use the system due to ISO 8859-1. Now 
this character set contains characters not € and UTF-8 is converted into a 
question mark.

What version of the product are you using? On what operating system?
HessianPHP - v2.0.3 Windows Clients and Linux Server

My suggestion would be the command uft8_decode() at the end of 
Hessian2Parser::readUTF8Bytes replaced by mb_convert_encoding($string, 
$this->options->decoding, 'UTF-8'), and the file
HessianOptions to expand this line -- public $decoding =''; --. So we can put 
on the warrant, the decoding in each format is listed here ->
http://www.php.net/manual/de/mbstring.supported-encodings.php

THANKS FOR YOUR GTREAT LIBRARY!!!

Torsten Höneise

Original issue reported on code.google.com by thoene...@gmail.com on 20 Jul 2011 at 10:24

Attachments: