hebrew

Python's os.path choking on Hebrew filenames

穿精又带淫゛_ 提交于 2019-11-30 11:36:20
I'm writing a script that has to move some file around, but unfortunately it doesn't seem os.path plays with internationalization very well. When I have files named in Hebrew, there are problems. Here's a screenshot of the contents of a directory: (source: thegreenplace.net ) Now consider this code that goes over the files in this directory: files = os.listdir('test_source') for f in files: pf = os.path.join('test_source', f) print pf, os.path.exists(pf) The output is: test_source\ex True test_source\joe True test_source\mie.txt True test_source\__()'''.txt True test_source\????.txt False

HTML5 Canvas fillText with Right-to-Left string

情到浓时终转凉″ 提交于 2019-11-30 03:44:29
问题 I am trying to use the fillText() method on an HTML5 Canvas' 2d Context to draw a string written in Arabic. It works perfectly, until I put a punctuation mark at the end of the string. Then the punctuation mark appears on the wrong side of the string (at the beginning, rather than the end, as if it were a ltr not rtl string). I played with the Context.textAlign property, but that seems to concern only the way the string is drawn relative to the specified position, not the actual direction of

Unicode/ UTF-8 text file: gibberish on Windows console (Trying to display hebrew)

早过忘川 提交于 2019-11-30 03:22:59
问题 I have a wide-character file (with Hebrew text) that looks fine in Notepad (saved in "UTF-8 encoding"), reads fine in Notepad++, and when I copy-and-paste into MS Word it looks fine too. But when I open a "DOS box" (Windows console) and go: "type file.txt", it prints gibberish. And yes, I've done all the recommendations for Unicode on Windows console: I opened the console using "cmd /u", I changed the font to Lucida, and I've entered: "chcp 65001". The problem is identical on a PC running

Matlab in Linux (Ubuntu 11.10) doesn't display Unicode (Hebrew) in plot figure

℡╲_俬逩灬. 提交于 2019-11-30 03:09:43
问题 I try to use Hebrew characters in a Matlab figure plot on my Ubuntu to no avail. I tried: text(0.6,0.5,'ירוק','fontname','times new roman','rotation',180,'fontsize',50,'color','r') and title('ירוק','fontname','times new roman','fontsize',50,'color','r') similar to what was proposed in the answer to this question. I got garbled text (see attached image). Matlab is in version R2009b. Of course I'm set to UTF-8 encoding. >> slCharacterEncoding ans = UTF-8 I also have access to a remote computer

Inserting hebrew values in SQL Server 2008

不问归期 提交于 2019-11-29 18:37:41
I've been trying to update a record with hebrew texy into a DB table, and it shown as "??????". Here's my command: UPDATE HebrewTbl SET HebrewVal = N'ראשונה' WHERE Id = 1 GO All solutions I found over the Internet ended up in adding that N in the beginning, but in my case the problem continues. Please advise. Thanks in advance TTeeple Copied from comment so question can be set to answered per suggestion of this post . Set your column to nvarchar and have the correct collation enabled to allow Hebrew characters. 来源: https://stackoverflow.com/questions/30326013/inserting-hebrew-values-in-sql

Python's os.path choking on Hebrew filenames

左心房为你撑大大i 提交于 2019-11-29 17:16:27
问题 I'm writing a script that has to move some file around, but unfortunately it doesn't seem os.path plays with internationalization very well. When I have files named in Hebrew, there are problems. Here's a screenshot of the contents of a directory: (source: thegreenplace.net) Now consider this code that goes over the files in this directory: files = os.listdir('test_source') for f in files: pf = os.path.join('test_source', f) print pf, os.path.exists(pf) The output is: test_source\ex True test

Lucene Hebrew analyzer

梦想与她 提交于 2019-11-29 16:02:10
问题 Does anybody know whether one exists? I've been googling this for monthes... Thanks 回答1: Update HebMorph Out of curiosity sparked by your question, I contacted Itamar Syn-Hershko who was active on Lucene mailing lists about a year ago when he was working on a Hebrew analyzer for Lucene. I asked him if he completed his analyzer. Here are some relevant bits from his response: To make a long story short, no I didn't. There is no decent free / open-source Hebrew analyzer for Lucene, that I can

Hebrew Encoding Hell in R and writing a UTF-8 table in Windows

一世执手 提交于 2019-11-29 15:01:05
问题 I'm trying to save data extracted with RSelenium from https://www.magna.isa.gov.il/Details.aspx?l=he, but although R succeeds printing Hebrew character to the console, it does not when exporting TXT, CSV or in other simple R functions, like data.frame() , readHTMLTable() , etc. Here goes an example. > head(lines) [1] "גלובל פיננס ג'י.אר. 2 בע\"מ נתונים כספיים באלפי דולר ארה\"ב" [2] "513435404" [3] "" [4] "" [5] "" [6] "4,481" First line changes to weird characters (below) when using data

Hebrew text in HTML files

你。 提交于 2019-11-29 14:00:01
I just did a pretty major typesetting session putting things in order for a specific prayer in Hebrew named Tikkun Haklali. It's here on jsfiddle.net . Unfortunately, when I tried to save the HTML and CSS to my computer, I get something like this: rather than something like this: What gives? Character encoding? If so, what should I save my text file in? HTML Charset Encoding: UTF-8. That way the browser will render it correctly. <meta charset="utf-8"> Place that right after <head> 来源: https://stackoverflow.com/questions/7873290/hebrew-text-in-html-files

Is there any way to write Hebrew in the Windows Console?

喜你入骨 提交于 2019-11-29 13:54:53
Is there any way to write Hebrew in the Windows Console? I tried the following: Console.OutputEncoding = new UTF8Encoding(false); Console.WriteLine("\u05D0\u05D1"); Console.ReadLine(); but instead of "אב" it writes some other Unicode character, that're not in the Hebrew ABC. Any ideas why? If you can call chcp command before your program, you can change the codepage to Hebrew and then your characters will be readable. There is an interesting article about internationalization and windows console here: http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt