Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Hebrew encoding  RSS feed

 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I have a problem reading Hebrew from a URL. This is what I do:

This seems like the standard way for doing it but it doesn't work. I also tried UTF-8'ing each of the lines I'm reading, like this:

But still no luck.

Any ideas? Can anyone try this on their machine?

Thanks!!!
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Strings are likely being read in OK, but the console is unable to print the characters. I'm no pro at this, but one solution is to display the text using a GUI.

 
eddy johns
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pete! That's brilliant, and it works. I still have a problem, because I need to send the output to another object, but I guess this narrows the scope of where to look. Anyone knows how do I get the Eclipse console to display it correctly?

Thanks again!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!