Jump to content

rwmaho

New Members
  • Posts

    3
  • Joined

  • Last visited

rwmaho's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks. Yes, str_replace does work. Working Code: $fancy=" “test” "; $fixed=str_replace("“","%93","$fancy"); $fixed2=str_replace("”","%94","$fixed"); echo "fancy: $fancy<br>"; echo "fixed: $fixed2"; Results: fancy: “test” fixed: %93test%94
  2. > Does mysql_real_escape_string() work? It didn't help. > general_utf8 should be good My database's collation is "general_utf8_ci"
  3. The fancy-looking quotes won't insert into my DB, so I'm trying to convert them to %93 & %94 or normal quotes. Nothing I've tried works. Code: $fancy=" “test” "; $fixed=htmlentities($old, ENT_QUOTES); echo "fancy: $fancy<br>"; echo "fixed: $fixed"; Results: fancy: “test” fixed: I want $fixed to be %93test%94, or even "test" would work.
×
×
  • 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.