hebrew

Hebrew encoding in sql server2005

隐身守侯 提交于 2019-11-28 09:38:34
问题 i try this code in sql server 2005 declare @userName nvarchar(50) set @userName='איש2' print @userName but i get this ???2 what is the cause? it look like it replace the Hebrew char to "?" 10x 回答1: Use the N prefix so the string literal is interpreted as unicode not char under the code page of whatever your database's default collation is declare @userName nvarchar(50) set @userName=N'איש2' print @userName 来源: https://stackoverflow.com/questions/3438483/hebrew-encoding-in-sql-server2005

Why does \\w match only English words in javascript regex?

元气小坏坏 提交于 2019-11-28 09:21:14
I'm trying to find URLs in some text, using javascript code. The problem is, the regular expression I'm using uses \w to match letters and digits inside the URL, but it doesn't match non-english characters (in my case - Hebrew letters). So what can I use instead of \w to match all letters in all languages? Because \w only matches ASCII characters 48-57 ('0'-'9'), 67-90 ('A'-'Z') and 97-122 ('a'-'z'). Hebrew characters and other special foreign language characters (for example, umlaut-o or tilde-n) are outside of that range. Instead of matching foreign language characters (there are so many of

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

独自空忆成欢 提交于 2019-11-28 07:48:47
问题 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? 回答1: 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

Displaying hebrew text on screen

旧巷老猫 提交于 2019-11-28 07:13:41
问题 I want to display hebrew text on the screen using the text command in MATLAB: text(0.6, 0.5, 'ירוק', 'rotation', 180, 'fontsize', 50, 'color', 'r') The problem is that it displays gibberish. Does anybody know why? What should I do in order to display the text correctly? 回答1: You need to use a font that supports Hebrew characters - the default font (Helvetica) does not. You can use 'Courier', David' etc. For example: text(0.6,0.5,'ירוק','fontname','david','rotation',180,'fontsize',50,'color',

right-to-left languages in Python

自作多情 提交于 2019-11-28 04:03:15
问题 I want to write a Hebrew string in Python and then show it onscreen. The problem is that I get a mirror view of what I wrote. How can I set the string to use RTL instead of left to right? 回答1: did you try this? http://pypi.python.org/pypi/python-bidi/ http://pypi.python.org/pypi/django-bidi-utils the Israeli FOSS comunnity is doing a lot in the direction, suprisingly, they happily collaborate also with Pharsi speakers :-) pyfribidi for windows or any other bidi algorithm 回答2: i know im pretty

hebrew appears as question marks in netbeans

不羁岁月 提交于 2019-11-28 03:53:14
问题 I am using netbeans 6.1 on 2 computers. on one of them the program: public static void main(String argv[]) { System.out.println("שלום"); } prints normally, and the on the other question marks. what can be the difference between the 2 environments? edit: on both computers Control Panel \ Regional and Language Options \ Advanced is set to hebrew edit: Thank you Michael Burr, but the value of the encoding is already UTF-8. Maybe this something with the JVM? edit: I have installed Eclipse and the

How to tell if a string contains characters in Hebrew using PHP?

独自空忆成欢 提交于 2019-11-28 00:53:10
问题 Trying to figure out how to tell whether a string contains any characters in Hebrew with no luck. How can this be done? 回答1: If the source string is UTF-8 encoded, then the simpler approach would be using \p{Hebrew} in the regex. The call also should have the /u modifier. = preg_match("/\p{Hebrew}/u", $string) 回答2: map of the iso8859-8 character set. The range E0 - FA appears to be reserved for Hebrew. [\xE0-\xFA] For UTF-8, the range reserved for Hebrew appears to be 0590 to 05FF. [\u0590-

PHP ZipArchive non-English filenames return funky filenames within archive

戏子无情 提交于 2019-11-27 22:52:26
问题 This code works properly to make the ZIP file with the wanted files, except the filenames in the archive, which are not in English (in this case they are Hebrew), have weird characters instead of the proper hebrew letters. <?php $filesfordown = $_POST['GEMin']; if(empty($filesfordown)) { echo "No files were seleceted for download."; } else { $zip_name = "RMW." . time() . ".zip"; $zip = new ZipArchive; $zip->open($zip_name, ZipArchive::CREATE); foreach ($filesfordown as $filefordown) { $zip-

Twitter Bootstrap Carousel cycle items right to left ( RTL ) reversed

☆樱花仙子☆ 提交于 2019-11-27 15:39:00
How can the Twitter Bootstrap Carousel cycle function can be changed to cycle the items from right to left instead of left to right so it'll look normal in hebrew/arabic websites? Just override the cycle function with a similar function that calls prev instead of next : $(document).ready(function () { $('.carousel').each(function(){ $(this).carousel(); var carousel = $(this).data('bs.carousel'); // or .data('carousel') in bootstrap 2 carousel.pause(); // At first, reverse the order of the items in the carousel because we're moving backwards $(this).find('> .carousel-inner > .item:not(:first

Javascript - how to find hebrew?

眉间皱痕 提交于 2019-11-27 12:49:07
i"m trying to fint if a string starts(first letter) width an RTL language/ hebrew. any ideas? Oded This will find hebrew letters encoded in the Hebrew Unicode code point range: [\u0590-\u05FF] Bart Kiers JavaScript does not support regex scripts like \p{InHebrew} (or something similar). However, it does support Unicode escapes, so you could use a regex like: /[\u0590-\u05FF]/ which will match a single Hebrew character. See: http://unicode.org/charts/PDF/U0590.pdf and: http://www.regular-expressions.info/unicode.html Oranit Dar // First choose the required validation HebrewChars = new RegExp("^