1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Special Characters - FTP - Not showing up on site correctly

Discussion in 'White Hat SEO' started by mg3hockey, Dec 28, 2012.

  1. mg3hockey

    mg3hockey Newbie

    Joined:
    May 21, 2012
    Messages:
    18
    Likes Received:
    3
    Hey guys,

    I am starting a site in Turkish and when I put my content in my html files the special characters to not convert.

    How would I be able to use content with special characters like Turkish and it appear on the site correctly?

    TIA

    Michael
     
  2. Endire

    Endire Elite Member Premium Member

    Joined:
    Mar 27, 2012
    Messages:
    1,756
    Likes Received:
    1,061
    Gender:
    Male
    Great question Mg3hockey,

    There are typically more complicated ways to get special characters to show up because many of the characters in their original form have different meanings for browsers. So for example writing the & symbol in html requires that a coder write & to simply display &.

    The types of codes you need would depend on which characters you are trying to display.

    Not sure if this will help you but here is a pretty extensive list of special characters and their corresponding codes,

    http://webdesign.about.com/library/bl_htmlcodes.htm

    Hope that helps,

    Shawn
     
    • Thanks Thanks x 1
  3. audioguy

    audioguy Power Member

    Joined:
    Jun 12, 2010
    Messages:
    609
    Likes Received:
    224
    Location:
    Anywhere in the world building WP sites.
    This has nothing with FTP, right? FTP just transfer files to and from your server, unless you put that special character in file name too and FTP program fails to show it properly.

    With that, you need to look into encoding. This is a complex topic, I have to say.
     
  4. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Partially incorrect. Depending on mode used (SFTP/FTPS/FTPES) some character encodes get dropped entirely or get switched with something else. This can be easily noticed using perl scripts.

    As for why you're having problems: Make sure the pages character encoding scheme supports the characters (http://www.w3schools.com/tags/ref_language_codes.asp), the file encoding is using the correct character (in notepad++ it is set in the 'Encoding' dropdown) and also use character encoding where possible.
     
  5. olystyle

    olystyle Regular Member

    Joined:
    Jan 6, 2012
    Messages:
    238
    Likes Received:
    103
    Hi mg3hockey

    Just in case that you use Filezilla as a FTP Client - set the Transfer from "Auto" to "binary" in the Menu "Transfer" - if it doesn't solve your problem check your mysql database for its character encoding: most likely its set to utf8_general_ci - set up a new database using utf8_turkish_ci and check if the problem is still present...

    Are you using a CMS?

    cheers olystyle
     
  6. mg3hockey

    mg3hockey Newbie

    Joined:
    May 21, 2012
    Messages:
    18
    Likes Received:
    3
    Ahh thank you all for your help. I got it working by adding this line into my header.

    "<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8">"
     
  7. kentli

    kentli Newbie

    Joined:
    Jan 7, 2013
    Messages:
    7
    Likes Received:
    0
    its cause mainly your code editor!

    1) in encoding section select utf-8 (so you can free to use รงรถ&#351; etc without &..) Probably it set your country setting.

    2) use charset utf on the html.

    thats all! :)