Re: HTML_QuickForm_Livesearch char coding
| From: | Joshua Eichorn | Date: | Thu, 05 Oct 2006 15:21:26 +0000 |
| Subject: | Re: HTML_QuickForm_Livesearch char coding | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25351@lists.php.net to get a copy of this message | ||
Paolo Sala wrote:
Joshua Eichorn scrisse in data 04/10/2006 16:13:Before returning the content from method do something like this: return mb_convert_encoding('Français','UTF-8'); -joshMassimiliano Arione wrote: The json class were using in livesearch only supports ascii or utf-8. Just use mbstring etc to make your strings utf-8 before returning them.Thank you very much Josh; now I've learned that the problem concerns multibyte strings but how can I solve it? The php4 interpreter on the server has been compiled using --enable-mbstring; furthermore phpinfo() return these setting on mbstring:Multibyte Support enabled Japanese support enabled Simplified chinese support enabled Traditional chinese support enabled Korean support enabled Russian support enabledMultibyte (japanese) regex support enabledDirective Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.internal_encoding ISO-8859-15 ISO-8859-15 mbstring.language neutral neutral mbstring.substitute_character no value no valueI don't knmow if it is important but the locales on the server is iso-8859-15. I've tried to change these settings using locales (and files coding too) and mbstring.internal_encoding in utf-8 but nothing has changed. Are you so kind to suggest me a way to have the accented letters to be correctly translated using livesearch? Thank you very much Piviul