• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
native language searching and support in Codeigniter

[eluser]Hairul Azami[/eluser]
Hi guys, how the concept of content creation with a language other than UTF-8, like youtube can do a search for character "你坐着为王"


If, you want to accept non-standard character like above on $_GET or $_POST variable, make sure you save your controller file with UTF-8 instead ANSI Encoding.

[eluser]Hairul Azami[/eluser]
What do you mean save controller file with UTF-8?
Btw, I just found this link:


What do you think?

[quote author="Hairul Azami" date="1305114350"]What do you mean save controller file with UTF-8?[/quote]
Before you implementing any Multibyte String function on that article, you must ensure that your controller file (or any related file) is saved with "UTF-8" instead "ANSI" encoding. If you are using Notepad as your editor, look at 'Encoding' option (its default to ANSI) at the bottom of save dialog, if you are using Vim :wq ++enc=utf-8

[eluser]Hairul Azami[/eluser]
Ok, I'm understand

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.