windows-1255

Java string encoding conversion within a webpage

Hi, I have a webpage that is encoded (through its header) as WIN-1255. A Java program creates text string that are automatically embedded in the page. The problem is that the original strings are encoded in UTF-8, thus creating a Gibberish text field in the page. Unfortunately, I can not change the page encoding - it's required by a c...

Why does Perl's LWP gives me a different encoding than the original website?

Hey, Lets say i have this code: use strict; use LWP qw ( get ); my $content = get ( "http://www.msn.co.il" ); print STDERR $content; The error log shows something like "\xd7\x9c\xd7\x94\xd7\x93\xd7\xa4\xd7\xa1\xd7\x94" which i'm guessing it's utf-16 ? The website's encoding is with <META HTTP-EQUIV="Content-Type" CONTENT="text/h...

problem injecting UTF8 encoded JSONP into a Win 1255 encoded webpage

Hi all, I am developing a third-party service embedded in websites as a JS snippet, that amongst other things need to fetch some jsonp data from my PHP server, and display the text contained in the json object on the hosting embedding website. I am using jQuery, so I issue the following .getJSON request: $.getJSON("http://localhost/ph...