hebrew

Localize current time in PHP

不羁岁月 提交于 2019-12-01 06:07:20
Trying to display current time with PHP (using this ): $date = date('m/d/Y h:i:s a', time()); echo $date; As simple as it gets. How do I localize it? I want to translate the months and days to Hebrew. Thanks. Zend_Date is completely internationalized. You should check that out for a simple way to do it: All full and abbreviated names of months and weekdays are supported for more than 130 languages. Methods support both input and the output of dates using the localized names of months and weekdays, in the conventional format associated with each locale. Actually, I don't think it is quite

Right to Left UI in iPhone (Hebrew)

五迷三道 提交于 2019-12-01 04:06:04
I'm struggling in creating a RTL UI in iPhone application. The framework doesn't seem to have any support for RTL languages. The only thing is the alignment inside labels, which is nice, but it conflicts with other controls behaviour. The question is: Is there a working code for a RTL TableView? Something that would handle the disclosure buttons to be on the left, section titles to be right aligned, index view to be left aligned? As far as I understand I cannot move the index view of the tableview, i have to overlay some custom control... Any suggestions/pointers/examples? p.s. this is not a

Localize current time in PHP

£可爱£侵袭症+ 提交于 2019-12-01 03:07:29
问题 Trying to display current time with PHP (using this): $date = date('m/d/Y h:i:s a', time()); echo $date; As simple as it gets. How do I localize it? I want to translate the months and days to Hebrew. Thanks. 回答1: Zend_Date is completely internationalized. You should check that out for a simple way to do it: All full and abbreviated names of months and weekdays are supported for more than 130 languages. Methods support both input and the output of dates using the localized names of months and

How is this website fixing the encoding?

僤鯓⒐⒋嵵緔 提交于 2019-12-01 01:34:22
I am trying to turn this text: ×וויר. העתיד של רשתות חברתיות והתקשורת ×©×œ× ×• Into this text: אוויר. העתיד של רשתות חברתיות והתקשורת שלנו Somehow, this website: http://www.pixiesoft.com/flip/ Can do it, and I would like to know how I might be able to do it myself (with whatever programming language or software) Just saving the file as UTF8 won't do it. My motivation for this question is that I have a friend's exported XML file with the garbled text which I want to turn into corrected Hebrew text file. The XML export was originally garbled by MySQL import and

Read non-english characters from http get request

£可爱£侵袭症+ 提交于 2019-12-01 00:25:13
I have a problem in getting Hebrew characters from a http get request. I'm getting squares characters like this: "[]" instead of the Hebrew characters. The English characters are Ok. This is my function: public String executeHttpGet(String urlString) throws Exception { BufferedReader in = null; try { HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(); request.setURI(new URI(urlString)); HttpResponse response = client.execute(request); in = new BufferedReader(new InputStreamReader(response.getEntity().getContent(),"UTF-8")); StringBuffer sb = new StringBuffer("");

Hebrew text showing rectangle in iOS on UIlabel?

て烟熏妆下的殇ゞ 提交于 2019-11-30 23:40:58
I have hebrew text and when I am showing on UILabel it showing some rectangle. please help. Actual Text :- בָּרוּךְ אַתָּה יְיָ, אֱלֹהֵֽינוּ מֶֽלֶךְ הָעוֹלָם, בּוֹרֵא פְּרִי הָעֵץ out put :- UPDATE :- I have created the UILabel Manually using storyboard xib and set font name and rectangles gone but when i using on programatically created UILabel it is not working.I double checked Font Name is fine .Any idea? Font is :- Arial Hebrew(family name) ArialHebrew-Bold (font name) ArialHebrew (font name) Please check by mistake if you would be setting the system font size or font name again then it's won't

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

时光总嘲笑我的痴心妄想 提交于 2019-11-30 19:40:44
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 via ssh, with version R2011a. That didn't work either. (There I had to slCharacterEncoding('UTF-8') )

HTML5 Canvas fillText with Right-to-Left string

☆樱花仙子☆ 提交于 2019-11-30 19:17:43
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 the text. Does anyone know of a solution to this? Thanks. Update: The answer I found is to add a "dir"

Matplotlib: Writing right-to-left text (Hebrew, Arabic, etc.)

允我心安 提交于 2019-11-30 17:35:14
I'm trying to add some text to my plot which is RTL (in this case, Hebrew). After some work managed to get it to display the text, but it's displayed LTR (meaning, in the reverese order). I've dug into the reference and did extensive search online and nothing came up. An example for what I'm using: import matplotlib.pyplot as plt plt.text(0.5, 0.5, u'שלום כיתה א', name = 'Arial') plt.show() and it displays 'א התיכ םלוש'. In case you can't see the Hebrew, it's as if i'd input 'Hello', and the output would be 'olleH'. I can't simply reverse the input since it's mixed LTR and RTL. Every help

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

允我心安 提交于 2019-11-30 15:06:07
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.frame() > head(as.data.frame(lines)) [1] <U+05D2><U+05DC><U+05D5><U+05D1><U+05DC> <U+05E4><U+05D9><U+05E0>