|
Posted by Peter.Laganis on 10/11/26 11:54
R. Rajesh Jeba Anbiah: Yes, yes this was rhe reason. I saved the file
(with UltraEdit-32) in UTF-8 format and it worked perfectly!!! Thank
you very much.
Michal Stankoviansky:
Thank you too. The article is worth of reading :)
Thank you to all of you guys!!!
Michal Stankoviansky wrote:
> Although is an mb_string extension for working with multibyte strings,
> but in this case (replacing one string with another string) you can use
> str_replace, no matter what the character set is. But, as someone above
> pointed out, the PHP script must be correctly saved in UTF-8.
>
> Recommended reading:
> http://www.phpwact.org/php/i18n/charsets
>
> kAlvaro wrote:
> > 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
>
> There is also an "u" (PCRE_UTF8) modifier for more powerful preg_*
> functions, but in this case, str_replace is sufficient.
>
>
> Michal Stankoviansky
Navigation:
[Reply to this message]
|