Posted by kAlvaro on 12/17/00 11:54
Peter.Laganis@gmail.com wrote:
> I would like to replace all the special characters ' ¾' with another
> special character '' in a string (retreived by an SQL). After that I
> would like to update the field with the corrected string.
There're some replace functions for multibyte strings:
mb_ereg_replace - Replace regular expression with multibyte support
mb_eregi_replace - Replace regular expression with multibyte support
ignoring case
In any case, I believe PHP doesn't really need to know whether it's a
two byte char or two single byte chars*. So maybe you specify the terms
as strings and you haven't saved your file as UTF-8 you the char in the
file is not the one you think you typed :-?
(*) This doesn't mean it'll work in _all_ cases
Navigation:
[Reply to this message]
|