Print Page | Close Window

[solved] Hebrew symbols while using EnableMarkup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23554
Printed Date: 23 November 2020 at 4:53pm


Topic: [solved] Hebrew symbols while using EnableMarkup
Posted By: ettyaz100
Subject: [solved] Hebrew symbols while using EnableMarkup
Date Posted: 29 January 2018 at 2:53am
I have just upgraded codejock controls to 18.2 (from 16.4) and noticed that If we are using the property EnableMarkup and send XML with hebrew characters, the content is not displayed correctly.
also this accent letters (Á, á, Ë, e, Ñ, ñ, etc).
I try to insert this code before "<?xml version='1.0' encoding='utf-8'?>"  and also other encoding but it didn't helped...
I implemets the code from codejock samples:

"<?xml version='1.0' encoding='ISO-8859-8'?><Border BorderThickness='2' BorderBrush='DodgerBlue' Margin='0, 2, 0, 2' Padding='3'><StackPanel Orientation='Horizontal'>" & _
    "<Border Width='32' Height='32'/>" & _
    "<Grid><Grid.ColumnDefinitions><ColumnDefinition Width='Auto'/><ColumnDefinition Width='*'/></Grid.ColumnDefinitions>" & _
    "<Grid.RowDefinitions><RowDefinition/><RowDefinition/></Grid.RowDefinitions>" & _
    "<TextBlock TextAlignment='Right' FontWeight='Bold' Foreground='Navy' Text='àDescription:'/>" & _
    "<TextBlock TextAlignment='Right' Grid.Row='1' FontWeight='Bold' Foreground='Navy' Text='Current Price:'/>" & _
    "<TextBlock Margin='6, 0, 0, 0' Grid.Column='1' Text='Digital camera'/>" & _
    "<TextBlock Margin='6, 0, 0, 0'  Grid.Column='1' Grid.Row='1'  Text='$321'/>" & _
    "</Grid></StackPanel></Border>"


in 16.4 version it worked correctly.
I will appreciate any help.



Replies:
Posted By: olebed
Date Posted: 29 January 2018 at 8:28am
Hello,

Problem can be also in used FontFamily, Try some other fonts

<TextBlock TextAlignment='Right' FontFamily='Segoe UI' FontWeight='Bold' Foreground='Navy' Text='àDescription:'/>

Also I have found problem with loading utf-8 files in VB,
Try to use this UTF8 reader
http://stackoverflow.com/questions/15809081/encoding-of-text-files-in-vb-6-0" rel="nofollow - https://stackoverflow.com/questions/15809081/encoding-of-text-files-in-vb-6-0

Regards,
 Oleksandr Lebed


Posted By: olebed
Date Posted: 29 January 2018 at 8:33am
I have changed our sample to correct loading utf-8, however in my virtual WinXP still problem with Hebrew. Japan, Korean symbols. I think this is because font doesn't support they. In Win7 and higher all symbols are shown correctly from wikimedia.xaml & MarkupPad.exe utility. This changes will be available in next release v18.3.


Posted By: ettyaz100
Date Posted: 30 January 2018 at 2:24am
Dear Oleksandr Lebed, 

I have tried whatever you suggested and unfortunately It didn't succeed.
I changed to UTF8 - even English characters wasn't displayed correctly. 
I added "FontFamily=..." with some different fonts and it wasn't OK.
This is very critical issue for us and we are hoping to get a solution soon.

 In win7 it is not displayed correctly.
could you send me a code of the XML that support this? what is the font name of the control?

Etty


Posted By: olebed
Date Posted: 30 January 2018 at 2:40am
your xaml file shold be real encoded to appropreate encoding
encoding='ISO-8859-8' or encoding='utf-8'.

Does MarkupPad.exe utilite correctly show wikimedia.xaml example in your evironment ?


Posted By: ettyaz100
Date Posted: 30 January 2018 at 2:47am
Thanks,

I changed to windows-1255 encoding and choose "arial" font name.
I also had to disable fontsize that was used before....
but now it is OK



Print Page | Close Window