Re: utf8 issues in Scintilla
| From: | Anant Narayanan | Date: | Wed, 07 Jun 2006 10:10:52 +0000 |
| Subject: | Re: utf8 issues in Scintilla | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2947@lists.php.net to get a copy of this message | ||
Hi Fernando,
> I find a bug in scintilla. Is about utf8 thing. The php converts the
> values from the variable to utf8 and give the utf8 version to scintiila,
> but it expects the plain value, not the encoded value, so in this
> function, by example, it set the value of scintilla with weird char(test
> with "ééééé", so:
You are right, Scintilla expects un-encoded strings. Now fixed in CVS,
update and check.
> If you agree that this is the best solution, I can search for the others
> functions where this happen and send to you all changes.
In addition to changing "u" to "s", we also need to call
phpg_from_utf8() to convert the UTF8 back. Check the last php-gtk-cvs
message if you're interested.
Bug reports and patches are most welcome, keep them coming :)
Thanks!
- Anant