Results 1 to 1 of 1
- 10-03-2010, 08:36 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 1
- Rep Power
- 0
Displaying japanese and other charsets
Hallo, just for fun I am developing a irc-bot, one of the functions are to display the title of webpages when someone posts a link in the chat, my problem is that links to non-western european charset like Shift_JIS come out as crap, both in the console window and the irc-chat.
here the code to fetch the title:
Java | /** * Gets the title of - Anonymous - uwj9aq5L - Pastebin.com
and here is the code to print it out later:
Java | public void main() throws - Anonymous - Qxr83n9t - Pastebin.com
as you would see is that i try to write purly on the console before sending it to the channel, the output I get is like to the console:
WEB_PAGE_MATCH: CVz[y[W
LINE_1: CVz?[y?[W
TEST_1: CVz?[y?[W
TEST_2: ?C?V???z?[???y?[?W
TEST_3: ?????[???[?
TEST_4: ?????????
TEST_5: ?C?V???z?[???y?[?W
TEST_6: ?C?V??z?[???y?[?W
TEST_7: ?C?V???z?[???y?[?W
TEST_8: CV?z?[??y?[?W
TEST_9: ?C?V??z?[???y?[?W
and in the irc, the irc-client i use have utf-8 set as charset
<Pabulo> CVz?[y?[W 00
<Pabulo> CVz?[y?[W 01
<Pabulo> ?C?V???z?[???y?[?W 02
<Pabulo> ?????[???[? 03
<Pabulo> ????????? 04
<Pabulo> ?C?V???z?[???y?[?W 05
<Pabulo> ?C?V??z?[???y?[?W 06
<Pabulo> ?C?V???z?[???y?[?W 07
<Pabulo> CV?z?[??y?[?W 08
<Pabulo> ?C?V??z?[???y?[?W 09
I can see when debugging the the string is containing the correct characters(in this case the japanese, well most of them) but when it goes out it comes out as crap.
Any help would be great.
Edit: seems like the ide didnt support it, I ported it to netbeans and it works there, bluej that i used before didnt support itseemsLast edited by Kkloe; 10-04-2010 at 06:31 PM. Reason: solved
Similar Threads
-
japanese character in jsp page
By javastuden in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 11-11-2010, 11:29 AM -
running a java application on Japanese OS
By yibingdong in forum Advanced JavaReplies: 4Last Post: 09-09-2009, 10:01 PM -
Using freemarker to send an email in Japanese utf-8
By mackstar in forum New To JavaReplies: 0Last Post: 09-01-2009, 10:49 AM -
Displaying Japanese characters in JSP page
By jmanjunath in forum Advanced JavaReplies: 1Last Post: 09-25-2008, 11:19 AM -
Seach with a japanese charecter via get method
By nimitha in forum New To JavaReplies: 1Last Post: 07-10-2008, 04:16 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks