arabic

Can't insert arabic characters into oracle database

自作多情 提交于 2020-01-30 09:41:06
问题 I got problems while reading arabic characters from oracle in java using JDBC driver, the main problem was i couldn't find the proper character encoding to get the correct data , but i solved the problem manually using this method: public static String cleanORCLString(String s) throws UnsupportedEncodingException { byte[] bytes = s.getBytes("UTF16"); String x = new String(bytes, "Cp1256"); String finalS = x.substring(3); StringBuilder sb = new StringBuilder(finalS); for(int k = sb.length() -

Java date time in arabic

有些话、适合烂在心里 提交于 2020-01-27 08:35:31
问题 How to get arabic date when the user selected language is Arabic and date in english format when selected language is english in spring application ? I tried by setting the default locale to english and arabic based on the request but this doesn't help me in getting calendar api time in arabic for (9 hours 15 mins). 回答1: Use Joda time or Java 8 Date time API. Following is the example of Java 8 API if(language.equals("English")){ LocalDateTime now = LocalDateTime.now(); } else{ HijrahDate

pdfmake install custom fonts on server side for CJK, arabic, and other foreign languages

戏子无情 提交于 2020-01-25 07:32:05
问题 I am using PDFMake to generate PDFs on the sever-side with NodeJS 12. The PDFs are rendering text that has a mix of english and foreign language characters. The PDFs are working, however, none of the foreign language characters are rendering correctly. I did some research and it looks like I need to install a custom font that can handle foreign language characters. I followed the accepted answer here to install the Google NotoSans font on the server side. How to create a PDF on Node.js using

Why does this regex return true?

谁说胖子不能爱 提交于 2020-01-24 10:06:51
问题 Why does this regex return true? Regex.IsMatch("العسكرية", "العسكري") I googled and nothing came up. 回答1: I suspect what you posted is actually reversed, where the shorter text is in fact the pattern, and the longer input is the input being matched against. In that case, this would return true since the pattern matches everything but the last letter in the word. To clarify, العسكري is the pattern, and العسكرية is the input. Since I know Arabic I can tell you that the latter would indeed be a

Why does this regex return true?

戏子无情 提交于 2020-01-24 10:06:20
问题 Why does this regex return true? Regex.IsMatch("العسكرية", "العسكري") I googled and nothing came up. 回答1: I suspect what you posted is actually reversed, where the shorter text is in fact the pattern, and the longer input is the input being matched against. In that case, this would return true since the pattern matches everything but the last letter in the word. To clarify, العسكري is the pattern, and العسكرية is the input. Since I know Arabic I can tell you that the latter would indeed be a

How to translate Arabic/Persian numbers to english using Ruby?

笑着哭i 提交于 2020-01-21 20:08:31
问题 How can I convert some string that has Arabic/Persian number to English ? Like if I have : str1 = "١۲١۲" str2 = "12١۲" str3 = "some string that contains persian digits like ١۲" Is there any function to encode it to english, and if the string contain such number to convert it like end results will be : str1 = "1212" str2 = "1212" str3 = "some string that contains persian digits like 12" Thanks 回答1: For these one on one transformations the tr-method is very convenient and fast. It has a

sqlite database in persian language

我怕爱的太早我们不能终老 提交于 2020-01-21 07:21:43
问题 I tried to create a sqlite database from a csv file. I did it as it is said in this page : using your own sqlite db in android and this : import csv to sqlite but the problem is when the table contains data in farsi/arabic language. sqlite shows that character as "_". what should I do? PS. I want to use this DB in an android project. edit: I import csv to sqlite using this code: CREATE TABLE "android_metadata"("locale" TEXT DEFAULT 'en_US'); CREATE TABLE "addresses"(_id integer PRIMARY KEY,

Date format issue in android when locale is arabic

╄→гoц情女王★ 提交于 2020-01-14 14:58:49
问题 I have a serious problem here, I am building an app that will work on Arabic devices, and I need to send dates to the server, I am using Android DatePickerDialog to get the date, but the date always sent with Arabic characters, and when i try to display it again it gives me Unparsable date exception I have tried the following solutions but no results mDateTime = Calendar.getInstance(Locale.US).getTime(); mDateFormater.setTimeZone(TimeZone.getTimeZone("GMT")); but non of them worked for me any

how i can display arabic letters in cmd

前提是你 提交于 2020-01-14 13:59:07
问题 can any one give my solution to display the arabic letters in cmd i tried to use chcp 1256 and chcp 62001 in cmd but it does not show the arabic letters correctly but when i search in the internet i found someone who said there is solution but it needs some files in windows 95 or windows 98 but i am not sure if he lying or not if there is files to display the arabic letters in cmd in windows 95 or windows 98 can any one upload those files to me or give me solution to display arabic letters in

how to send arabic sms with at-command in c#

耗尽温柔 提交于 2020-01-13 19:36:10
问题 How can I send Arabic SMS with the at command in C#? When I send Arabic messages it shows incorrect characters. I tried using this code: serialPort1.BaseStream.Flush(); string cb = char.ConvertFromUtf32(26); System.Threading.Thread.Sleep(2000); this.serialPort1.Write("AT+CMGF=1\r"); this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n"); this.serialPort1.Write("AT+CSMP=\"" + 1 + "," + 167 + "," + 0 + "," +8+ "\"\r\n")