Changing the encoding

Discussion in 'JavaScript' started by powerbfore, Dec 19, 2012.

  1. #1
    Hello, I have a script that seems to be incompatible on my forum
    http://pastebin.com/nXbizpZy
    It suppose to test your ability on korean captchas. If you get it wrong, it'll output the correct korean and keystrokes to write it.
    However, when I put it on my forum, the korean output is just jibberish. So i'm wondering how I can change the encoding? Thanks
     
    powerbfore, Dec 19, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    Do you want to change the encoding of that code (to English, for example)? Or do you want to change the encoding of your site to Korean?
     
    Rukbat, Dec 20, 2012 IP
  3. powerbfore

    powerbfore Greenhorn

    Messages:
    31
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    23
    #3
    I wish to change the encoding of the code, not my site.
    I want it to output as Korean as it should.
     
    powerbfore, Dec 21, 2012 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    The code has no encoding. The site (the HTML) tells the browser what font to use. In Latin fonts, 65 is "A", in a Korean font, 65 is some Korean character. If your site doesn't tell the browser what language it's written in, the browser isn't going to show it correctly.
     
    Rukbat, Dec 21, 2012 IP