#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    670
    Rep Power
    38

    Special characters


    OK, I need to create a web site in 3 languages . . . English, Spanish, Portuguese. The translations will be done for me. I was wondering, when coding the page, do I need to use HTML entities for the special characters in this language? Or, is there an easier way to do this?

    Also, do I need to implement a specific doctype for the other languages?

    that's it
    thanks!
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    If everything is encoded using UTF-8 you shouldn't need to do anything differently for the different languages.

    Comments on this post

    • elkehinze agrees
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    670
    Rep Power
    38

    hey E-Oreo


    Thanks for the reply. I don't have the translations yet, but I will give your response a try.

    thanks again
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Web Designing Company


    Hello,

    i'm agree with E-oreo , you need to encoding by using UTF-8 for different language.

    Regards
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    670
    Rep Power
    38

    OK, my accented letters don't appear properly


    OK, my header looks has this code:
    Code:
    <!DOCTYPE html>  <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="es">  <meta charset="UTF-8" />
    And in the navigation, I have the following text, "OTIZACIN"

    Unfortunately, the "" and other Spanish letters with accents, show a diamond icon where these letters are supposed to be.

    The site has a bit of Spanish text, and I don't want to comb through and apply HTML entities throughout the site.

    Is there a way I can cut and paste the text into a page for the web, without having to implement HTML entities for every special character? This could save me a day of work.

    thanks
  10. #6
  11. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    Make sure that your editor is configured to save the file in UTF-8.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    670
    Rep Power
    38

    Just figured it out


    OK, I'm using BBEdit, which I really like. I have to save my document as "Unicode UTF-8, no BOM" and everything is working properly for the Spanish text.

    Thanks for the previous comments.

    I hope this helps others.

    -S

IMN logo majestic logo threadwatch logo seochat tools logo