Results 1 to 2 of 2
  1. #1
    Chris2547 is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Japanese Input from Internet

    Im trying to get japanese text from a website. My problem is many of the characters are being changed to the character '�'. So I'm getting input this like:

    �K���v���탊�j���[�A��HG�̏o�ד�

    This is the code I used to get english text, which I had no problem with:

    BufferedReader in = new BufferedReader(new InputStreamReader(websiteURL.openStream()));

    while ((inputLine = in.readLine()) != null) {

    }

    I know a bit about java , but not alot. I hope its an easy fix. Should I be inputting the data as bytes; then converting the bytes into text? I tried going down that path, but had now luck.

    Help and understanding for this problem would be appreciated.
    Thanks, Chris M

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

Similar Threads

  1. japanese character in jsp page
    By javastuden in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 11-11-2010, 11:29 AM
  2. Displaying japanese and other charsets
    By Kkloe in forum Advanced Java
    Replies: 0
    Last Post: 10-03-2010, 08:36 PM
  3. Using freemarker to send an email in Japanese utf-8
    By mackstar in forum New To Java
    Replies: 0
    Last Post: 09-01-2009, 10:49 AM
  4. Displaying Japanese characters in JSP page
    By jmanjunath in forum Advanced Java
    Replies: 1
    Last Post: 09-25-2008, 11:19 AM
  5. Seach with a japanese charecter via get method
    By nimitha in forum New To Java
    Replies: 1
    Last Post: 07-10-2008, 04:16 PM

Tags for this Thread

Posting Permissions

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