LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2017, 10:25 PM   #1
sheelamanatec
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Rep: Reputation: Disabled
Question Persian character are shown reverse and disconnected by C# application running on rasbian jessie OS via MONO Cross Compiler


Hi,

I am using the latest release of rasbian jessie OS. I am running a c# application through mono on jessie. I see my application window shows the persian and arabic characters as reverse and disconnected. Can anyone tell me how to fix this issue.

If I run a java application, that shows the persian character correctly, where as C# through mono only shows the persian characters as disconnected. Is it the problem with OS or Mono Cross compiler. Can Anyone give my solution which is very very urgent


best Regards,
Sheela
 
Old 01-27-2017, 11:55 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Have you actually set the encoding scheme to UTF8?
http://csharpindepth.com/Articles/General/Unicode.aspx
 
Old 01-27-2017, 09:39 PM   #3
sheelamanatec
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I have tried opening the file in UTF8 as well as in UNICODE

Hi,

I am running the application in Raspberry pi, which has Rasbian jessie OS. In that i have installed Mono. I compile my C# application in windows, and run the executable in Raspberry pi using mono. My application is simple, a form which displays Persian text. I read from a file and assign the text to a textbox of a windows form application.
I compile using the visual studio. When i run the application on raspberry pi, i see the text box content are reversed and disconnected.
I tried opening the file in UTF8 and UNICODE format, and read the content. Both way the text are disconnected only.

Best Regards,
Sheela
 
Old 01-28-2017, 10:21 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The problem might be the font used. A good source of Persian fonts is
http://www.wazu.jp/gallery/Fonts_Arabic.html
To install a font in Linux. create a folder .fonts in your home directory and just put the font into it.
 
Old 01-29-2017, 09:28 PM   #5
sheelamanatec
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I already tried Lot of fonts from the mentioned Website

Dear Sir,

I have already tried so many fonts from this web site, could not succeed. Reverse problem i somehow managed to correct it, but disconnected display only issue.
I have attached a sample windows form, which displays the disconnected characters. Kindly have a look.

Best Regards,
Sheela
Attached Thumbnails
Click image for larger version

Name:	Corrected-Pass.jpg
Views:	27
Size:	88.5 KB
ID:	24085  
 
Old 01-30-2017, 11:04 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The problem must be in the Mono system of C#, but I know nothing about them. A search for "C# persian" came up with this, which I can't read but you obviously can!
http://persiadevelopers.com/
 
Old 02-02-2017, 04:49 AM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
I just can remind that most software that implement the bidi algorithm (see also here) rely on the fribidi library mostly written by Behdad Esfahbod. So, if some software doesn't properly display Persian text I would check if it relies on fribidi directly or indirectly and how it uses it.

Sorry not to be able to help more.

Last edited by Didier Spaier; 02-02-2017 at 05:12 AM.
 
Old 03-06-2020, 11:26 AM   #8
kiolin
LQ Newbie
 
Registered: Mar 2020
Posts: 1

Rep: Reputation: Disabled
Reverse and disconnected Persian character

Hi,

I have exactly the same problem.
please help me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb keyboard identified and events shown but key character not shown on the prompt flyxtop Linux - Software 0 11-30-2013 07:45 AM
mono: error running custom app via mono on linux RH kirk5000 Linux - Software 4 06-15-2012 04:22 AM
Cross compiling Mono for ARM device running on Linux 2.4 kartiknatarajan Linux - Embedded & Single-board computer 5 12-16-2009 10:59 PM
My c compiler doesn't work after the cross-compiler installed heracles.cn Linux - Newbie 1 06-05-2007 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration