List:General Discussion« Previous MessageNext Message »
From:Jasper Bryant-Greene Date:August 16 2005 10:35pm
Subject:Re: character encoding
View as plain text  
Karima Velasquez wrote:
> uhmmm...
> 
> i'll give a try to mysql_real_escape_string(), which i understand
> formats the data into a valid sql string (without any special
> characters, like \ and ' ).
> 
> shoud i use an analog function when retriving the data? because if i
>  "encode" the data, shouldn't i "decode" it?

The mysql_real_escape_string() function simply escapes special
characters. It will turn your single backslash into a double backslash,
which is interpreted as an actual backslash rather than a special character.

When you retrieve the data there is no need to decode it with any 
special function.

Jasper
Thread
character encodingKarima Velasquez15 Aug
  • Re: character encodingWarren Young15 Aug
    • Re: character encodingKarima Velasquez15 Aug
      • Re: character encodingWarren Young15 Aug
        • Re: character encodingKarima Velasquez15 Aug
          • Re: character encodingWarren Young15 Aug
            • Re: character encodingKarima Velasquez16 Aug
              • Re: character encodingWarren Young16 Aug
                • Re: character encodingKarima Velasquez17 Aug
                  • Re: character encodingJasper Bryant-Greene17 Aug