[solved] Hebrew symbols while using EnableMarkup |
Post Reply |
Author | |
ettyaz100
Groupie Joined: 29 January 2018 Status: Offline Points: 11 |
Post Options
Thanks(0)
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.
|
|
ettyaz100
Groupie Joined: 29 January 2018 Status: Offline Points: 11 |
Answer Post Options Thanks(0) |
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
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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 https://stackoverflow.com/questions/15809081/encoding-of-text-files-in-vb-6-0 Regards, Oleksandr Lebed |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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.
|
|
ettyaz100
Groupie Joined: 29 January 2018 Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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 |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
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 ? |
|
ettyaz100
Groupie Joined: 29 January 2018 Status: Offline Points: 11 |
Answer Post Options Thanks(0) |
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |