+ Reply to Thread
Results 1 to 5 of 5

Thread: Template Problem with Japanese Encoding

  1. #1
    Senior Member WizyWyg is on a distinguished road WizyWyg's Avatar
    Join Date
    Jul 2001
    Location
    Honolulu, HI
    Age
    35
    Posts
    1,309

    Template Problem with Japanese Encoding

    Running into a semi-bug to with Template Encoding for the Japanese Shift_JIS character set

    Since a majority of our office are japanese speaking and writing, I changed my style set for the forum for the document encoding to SHIFT_JIS, so that way the forum doesn't default to western encoding and they see "gibberish"

    A problem has occured with two widely used characters that are not parsing correctly

    Please see this test post in the test forum. I've tried to post examples of how the forum is being messed up:

    http://www.vbulletin.com/forum/showt...670#post264670

    (please change your View > Page Encoding to Japanese Shift_JIS to see what I mean)

    Basically, just to see if it was doing it here, I posted a new thread and changed my browser to View > Page Encoding > Shift_JIS and started the thread.

    I tested it with the word Boy Scouts since that contained one of the characters that was not parsing correctly. As you can see, the first character is showing up as a dot followed by #123.

    But below where I posted that same word in the default View> Page Encoding > Western European it posts correctly, but when you go to edit or view source, you will see that it was posted with the ASCII/UNICODE equivalent of those characters.

    The 2 characters causing this weird problem are:
    katakana for "bo"
    and
    Kanji for "hon"

    both appear at a dot followed by #123

    I have attached an image to this post of the two japanese characters that are causing this problem (there could be more, but we haven't encountered them) and the test word I used along with the unicode equivalent.

    Anyone want to "share" some light on this? Its not a "major" problem but one of our workers happens to have the Kanji Hon in his name, so its kinda weird to see his name get cut off by ascii.

    I also should mention that this is happening in 2.2.4. I have no hacks installed on any of the templates that has to do with posting or editing a post, or replying to posts etc. I dont know if this was happening in any prior version, but Im assuming that it wasn't since I never got a complaint about it (considering that one of the characters is part of one of our workers names).
    Last edited by WizyWyg; Wed 20th Mar '02 at 5:03pm.
    There are only 10 types of people in the world: Those who understand binary, and those who don't


  2. #2
    I am checking on this issue too. It's probably the problem of php or MySQL though.

    I am not good at technical side. I would be very grateful if someone can pinpoint to me what's wrong.

    In fact, the only characters that goes weird are those double-byte characters with ASCII code 7B at the second byte. (as decimal, it is 123). The generated codes are in the form of
    ?#123; but if you use netscape 4, you can view it correctly.

    Just for an example, for those who can read S_JIS encoding:
    { this is the character that comes out incorrectly.

    89 3f | @ A B C D E F G H I J K L M N
    89 4f | O P Q R S T U V W X Y Z [ \ ] ^
    89 5f | _ ` a b c d e f g h i j k l m n
    89 6f | o p q r s t u v w x y z { | } ~
    89 80 |
    89 90 |
    89 9e | * *
    89 ae |
    89 be |
    89 ce |
    89 de |
    89 ee |

  3. #3
    Senior Member WizyWyg is on a distinguished road WizyWyg's Avatar
    Join Date
    Jul 2001
    Location
    Honolulu, HI
    Age
    35
    Posts
    1,309
    You're producing this too as well (i noticed it in your examples).

    But my question is why is it happening now? Because one of my users name uses Hon (or moto) in his name and we never had complaints about it before. Im sure that they've posted his name before in the forum, so why is it producing this now?
    There are only 10 types of people in the world: Those who understand binary, and those who don't


  4. #4
    vBulletin Team Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke's Avatar
    Join Date
    Aug 2000
    Location
    So. California
    Age
    39
    Posts
    35,149
    Blog Entries
    1
    Because The #123; code produces a {. This was prevented in vBulletin 2.2.3b or something like that do to security issues.

    You will need to perform a code change as outlined in the following thread from vBulletin.org:
    http://www.vbulletin.org/forum/showt...threadid=35894
    Wayne Luke
    Get started with your own social network.
    Purchase and download vBulletin today.
    vBCodex (Running vB 4.0 Suite) - Take your vBulletin Community to the next level. Modification tips, tricks and support.

  5. #5
    Senior Member WizyWyg is on a distinguished road WizyWyg's Avatar
    Join Date
    Jul 2001
    Location
    Honolulu, HI
    Age
    35
    Posts
    1,309
    Well, the unicode of hon (kanji) and bo (katakana) was producing that #123 so I dont know how it was associating these two characters for {.

    Anyway, the solution worked and now we can type out Sugimoto correctly.

    Domo Arigato!
    There are only 10 types of people in the world: Those who understand binary, and those who don't


+ Reply to Thread

Similar Threads

  1. Problem with Japanese Encoding ( version 2.3.0 )
    By WizyWyg in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 10
    Last Post: Mon 11th Aug '08, 2:05am
  2. Japanese
    By Heikin in forum A place to test things out
    Replies: 7
    Last Post: Tue 1st Nov '05, 11:49pm
  3. Problem with Headers and Content-Encoding: gzip
    By MadMikey in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 0
    Last Post: Fri 13th Jun '03, 5:02pm
  4. Japanese Language Support problem
    By WizyWyg in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Fri 20th Sep '02, 9:22pm
  5. Does Japanese come out OK
    By plonker in forum A place to test things out
    Replies: 3
    Last Post: Sat 18th May '02, 3:55am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts