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

#1
[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 "你坐着为王"

http://www.youtube.com/results?search_query=你坐着为王&aq=f

#2
[eluser]toopay[/eluser]
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.

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

http://www.haughin.com/2010/02/23/buildi...lications/

What do you think?

#4
[eluser]toopay[/eluser]
[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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