Questions tagged [windows-1255]

Windows-1255 is a code page used under Microsoft Windows to write Hebrew.

Windows-1255 is a code page used under Microsoft Windows to write Hebrew.

25 questions
5
votes
1 answer

Character encoding issue when using Google Apps Script to extract data from web page

I have written a script using Google Apps Script to extract text from a web page into Google Sheets. I only need this script to work with a specific web page, so it does not need to be versatile. The script works almost exactly as I want it to…
4
votes
2 answers

HTML - charset windows 1255 works but utf-8

I wrote html page that displays mixed hebrew/english content.It works fine with charset "windows - 1255"
4
votes
2 answers

How to convert UNICODE Hebrew appears as Gibberish in VBScript?

I am gathering information from a HEBREW (WINDOWS-1255 / UTF-8 encoding) website using vbscript and WinHttp.WinHttpRequest.5.1 object. For Example : Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5.1") ... 'writes the file as unicode…
3
votes
4 answers

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

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…
Ricky Levi
  • 7,298
  • 1
  • 57
  • 65
3
votes
5 answers

Java string encoding conversion within a webpage

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…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
3
votes
2 answers

How to convert Windows-1255 To UTF-8 in Classic ASP?

How can I convert a windows-1255 string to utf-8 in classic ASP? My database is windows-1255 and I want to transfer my site to utf-8.
Alon
3
votes
1 answer

Convert Windows-1256 to UTF-8

I get the contents of a web page by curl, with charset set to Windows-1256. Now I want to insert this data into a MySQL database, with charset utf8_general_ci. Is there any way to do this?
Moein Hosseini
  • 4,309
  • 15
  • 68
  • 106
1
vote
1 answer

How to printf different locale?

In C, after setting a new locale withsetlocale(LC_ALL, "Hebrew"), I could print the new local name (Hebrew.Israel.1255), but couldn't figure how to use the new locale's charset, sinceprintf(%c, 240) printed '?' instead of a hebrew letter(1255…
winuall
  • 359
  • 1
  • 5
  • 13
1
vote
0 answers

JS utf8 to windows1255 string

I've been trying to convert from utf8 string to windows-1255 string for along time now. I came up with this code: var fs = require('fs'); var Iconv = require('iconv').Iconv; var iconvlite = require('iconv-lite'); var windows1255 =…
liron t
  • 11
  • 1
1
vote
1 answer

How to get a webpage with unicode chars in python

I am trying to get and parse a webpage that contains non-ASCII characters (the URL is http://www.one.co.il). This is what I have: url = "http://www.one.co.il" req = urllib2.Request(url) response = urllib2.urlopen(req) encoding =…
Eran Zimmerman Gonen
  • 4,375
  • 1
  • 19
  • 31
1
vote
1 answer

problem injecting UTF8 encoded JSONP into a Win 1255 encoded webpage

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…
odedbd
  • 2,285
  • 3
  • 25
  • 33
1
vote
1 answer

Converting from Windows-1255 to UTF-8 in Node JS

I'm extracting text from a Windows-1255-encoded webpage using Node.js. I'm trying to decode the text using the windows-1255. After installing it using NPM and requiring it in the relevant file, I tried using it like this: var title =…
M Polak
  • 747
  • 7
  • 16
1
vote
2 answers

Java subtract value of char code in string

I am trying to convert string to hebrew encoding (windows 1255) so I need to substract from the value of any char 1264 and put here in new string. this is the code in javascript that I am trying to convert: strText = strText.replace(/[א-ת]/ig,…
Haim127
  • 585
  • 2
  • 8
  • 29
1
vote
4 answers

Encoding issues ... windows-1255 to utf 8?

Encoding convert from windows-1255 to utf-8 was asked before I know, but I'm still getting different results and I can't solve it. The first issue is "does php iconv() or mb_convert_encoding() support windows-1255????" While testing, it returns…
Shlomi Hassid
  • 6,500
  • 3
  • 27
  • 48
0
votes
1 answer

python SyntaxError: encoding problem: windows-1255 with BOM

That's my simple code: #!/usr/bin/env python # -*- coding: windows-1255 -*- str = "\u05dc\u05d9\u05d0\u05d5\u05e8" print (str) Could you tell me why I get this error? python SyntaxError: encoding problem: windows-1255 with BOM Thanks a lot
1
2