Jump to content

changing encode of a field


Placebo

Recommended Posts

i have a html form that send a text input data ($query) to a php script

 

the php script adds it to database ...

 

in php script i want to change the encode of $_get variable to UTF-8 .

 

i used htmlspecialchars('$query' ,'','UTF-8);

but it return 0 when i print it ...

 

any other way ? plz help me  :-\

Link to comment
https://forums.phpfreaks.com/topic/121368-changing-encode-of-a-field/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.