Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > MarkupLabel Control
  New Posts New Posts RSS Feed - [solved] Hebrew symbols while using EnableMarkup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[solved] Hebrew symbols while using EnableMarkup

 Post Reply Post Reply
Author
Message
ettyaz100 View Drop Down
Groupie
Groupie


Joined: 29 January 2018
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote ettyaz100 Quote  Post ReplyReply Direct Link To This Post Topic: [solved] Hebrew symbols while using EnableMarkup
    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.
Back to Top
ettyaz100 View Drop Down
Groupie
Groupie


Joined: 29 January 2018
Status: Offline
Points: 11
Answer Answer
Post Options Post Options   Thanks (0) Thanks(0)   Quote ettyaz100 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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
https://stackoverflow.com/questions/15809081/encoding-of-text-files-in-vb-6-0

Regards,
 Oleksandr Lebed
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ettyaz100 View Drop Down
Groupie
Groupie


Joined: 29 January 2018
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote ettyaz100 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post 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 ?
Back to Top
ettyaz100 View Drop Down
Groupie
Groupie


Joined: 29 January 2018
Status: Offline
Points: 11
Answer Answer
Post Options Post Options   Thanks (0) Thanks(0)   Quote ettyaz100 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.173 seconds.