Jump to content

lonelycastle

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lonelycastle's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks a lot effigy. You've saved me days of fiddling around.
  2. That fixed it. Thanks a bunch. Also, just a quick question. When I have forms on the website, do I have to utf8_encode them before I submit them or do I have to do anything different to allow users to type unusual characters in my forms?
  3. I don't know much about how to change the MySQL connection. My brother usually does that stuff, but he's at class at the moment. If you could tell me what to look for [what the connection code looks like] I could try and figure it out. Which looks more like the connecting code: $CONNECT_SLAVE = myC("SLAVE"); $CONNECT_MASTER = myC("MASTER"); .. both of which go to a function which does this: $link_identifier = mysql_connect($_DB[$server_group][$r]['IP'], $_DB[$server_group][$r]['USER'], $_DB[$server_group][$r]['PASS']) or error_mysql("Connect - ".$_DB[$server_group][$r]['PASS']); or mysql_query("USE `".$database."`", $link_identifier) or error_mysql("USE `".$database."`"); or $resource = mysql_query("$query", $link_identifier) or error_mysql($query); I know I'm an idiot, but thanks for the help.
  4. Right now I'm not even applying a font. It's just the typical Arial or whatever is the standard web font. Also, if I don't use the utf8_encode, none of the unusual characters work (ã, í, etc. don't work).
  5. Alright, so I have a mysql database full of location names from around the world. Needless to say, there's a lot of unusual characters. The database and each table within it has a utf8_general_ci collation and all the rows appear fine within the database: Examples: Nichiyō Seamount 嫁島海山 Kobilovača Bom Princípio do Piauí I have this in the header: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> And I utf8_encode all the info I get from the database: utf8_encode($qry[title]); This works for basic symbols: Bom Princípio do Piauí Cidelândia São José da Safira But not for some of the more complex ones: ?uri?a Staje (should be Ćurića Staje) ???? (should be سوت) Gy?ja-zan (should be Gyōja-zan) I know very little about character encoding or how to make sure everything (especially the communication between the database and website) is using utf8. Any help you could offer would be great. Thanks.
×
×
  • 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.