persian

Restore MySQL DB with Unicode characters (Arabic and Kurdish) in .gz format

本小妞迷上赌 提交于 2019-12-28 19:18:23
问题 I have a MySQL backup file in .gz format that was created by the backup wizard in cPanel. When the restoration is done by the backup wizard, contents with Arabic and Kurdish characters do not show correctly, even though I changed the collation to different UTF-8 encoding in PhpMyadmin. For example, the real data in DB is : كامپى زانكۆ and the data showed after the restoring become to this : بÙâزاÙÙÛÛâ 回答1: This is a fairly common problem caused by inconsistent encoding schemes when

Insert a persian text in mysql table

人盡茶涼 提交于 2019-12-28 18:51:32
问题 I want to store values of a form (in php) into mysql , one field is text and values of this field is in persian language , when I insert data to table this persian text stores in this shape : ??????? I use these codes but it isn't work properly mysql_set_charset('utf8',$db); mysql_query("SET CHARACTER SET utf8"); mysql_query("SET NAMES utf8_persian_ci"); tables ,database and columns has utf8_persian_ci collation 回答1: make sure the collation is utf8. collation persiab case insensitive may not

PHPFox persian url in IIS server transforms to question mark

纵饮孤独 提交于 2019-12-25 02:58:33
问题 I have installed phpfox in a IIS server which supports php 5.x But URLs transforms to ????? when i click on some persian links. For example i should have a link like : http://mydomain.com/index.php?do=/photo/album/6/اخبار/ which is like http://mydomain.com/index.php?do=/photo/album/6/????????/ Although i have this problem in my online windows based host, i have installed this version in localhost using XAMPP and it is running without problem. I am newbie in php. 来源: https://stackoverflow.com

Does Sqlite database support persian/arabic encoding?

試著忘記壹切 提交于 2019-12-24 15:12:51
问题 I work with Sqlite database in C# and I have this question: Does Sqlite database support Persian/Arabic encoding? Because I have written some Arabic/Persian data in it and when I want to read data from database it is read in unsuitable form!!! my code : int len = ds.Tables["tbl"].Rows.Count; int index = rnd.Next(0, len - 1); //notifyIcon1.ShowBalloonTip(15, "پیام عشق ", ds.Tables["tbl"].Rows[index][0].ToString(), ToolTipIcon.Info); string str = ds.Tables["tbl"].Rows[index][0].ToString();

How to show Persian date in WPF DataGrid?

这一生的挚爱 提交于 2019-12-23 19:48:46
问题 How can I change this code (or somewhere else): <DataGridTemplateColumn x:Name="timeColumn" Header="time" IsReadOnly="True"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <DatePicker SelectedDate="{Binding time, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}"/> </DataTemplate> </DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn> To show date in Persian format? time in database is in Timestamp format. I want just "show it" in Persian format, and have

Persian RadDateTimePicker in C# winform?

≯℡__Kan透↙ 提交于 2019-12-23 19:03:27
问题 I like to use DateTimePicker in my winforms C# project but both C# and Telerik Control have Gregorian date. Can anyone convert these control to Persian DateTimePicker ? Is any way for my problem. Please help me. 回答1: I don't think there is any way in C# to set DataTimePicker to Persian. And Telerik also do not support such thing take a look here. So I would suggest you to explore other options such as Code project Code Plex 回答2: use the telerik radDateTimePicker and write this code , after

Persian character's issue in mysql database

独自空忆成欢 提交于 2019-12-23 16:34:19
问题 When I insert Persian data to database, data will save like this: †Ø¯Ø± 50 لیتری But when I read data from database and echo it on the web, they are Ok. I need to read data in my database directly. what is your solution? Mysql setting: Server connection collation: UTF8_general_ci Html file charset is utf8. 回答1: I had a same issue,this code: mysqli_set_charset($con, "utf8"); solved my problem! 回答2: you should use this code $yourConnection->set_charset("utf8"); for example function

Itextsharp can't extract pdf unicode content in c#

☆樱花仙子☆ 提交于 2019-12-13 08:34:01
问题 I am trying to get the content of pdf file using itextsharp as you can see : static void Main(string[] args) { StringBuilder text = new StringBuilder(); using (PdfReader reader = new PdfReader(@"D:\a.pdf")) { for (int i = 1; i <= reader.NumberOfPages; i++) { text.Append(PdfTextExtractor.GetTextFromPage(reader, i)); } } System.IO.File.WriteAllText(@"c:/a.txt",text.ToString()); Console.ReadLine(); } My pdf content is written in Persian ,and after running the above code to result is like this :

how to turn a Persian (Farsi) paragraph into its list of words in Javascript

别等时光非礼了梦想. 提交于 2019-12-13 07:57:26
问题 I am trying to make an object out of a paragraph that shows words with their frequencies. var pattern = /\w+/g, //the farsi paragraph string = "من امروز در مورد مهر خروج مشمولین اطلاعات جدیدی از سفارت ایران در مالزی گرفتم", matchedWords = string.match( pattern ); /* The Array.prototype.reduce method assists us in producing a single value from an array. In this case, we're going to use it to output an object with results. */ var counts = matchedWords.reduce(function ( stats, word ) { /* `stats

How to find mistyping in Arabic and Persian language?

丶灬走出姿态 提交于 2019-12-13 02:49:54
问题 In Persian and Arabic alphabet we have some letters that has different shape but their sounds are so close together. These are list of those letters: S= س, ص, ث Gh= غ , ق T= ت,ط Z= ز , ض, ظ, ذ H= ح , ه Many people don't know how to write words or forget the spelling and write the words wrong. For example for the word دغدغه it can be write in 8 ways: 1: دقدغه 2: دقدغح 3: دقدقه 4: دقدقح 5: دغدغه 6: دغدغح 7: دغدقه 8: دغدقح How can I count how many ways a user can type a word wrong? Is there any