Hi there!
I encountered a problem with the Enriched Block Text:
If "special" characters are contained in the string, the textblock ignores the custom models (scale, font, yoff..)
This also happens if the font has the specific characters!
Two example strings:
1. "郑州轻工业学院国际教育学院"
2. "。"
Is there a trick about it or is it a bug?
Cheers!
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server
Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!
Enriched Blocktext ignores custom models
Moderator: Support
Re: Enriched Blocktext ignores custom models
Hi!
This works for me! Are you sure that you are using a Font which contains these Chinese (?) characters.
Cheers
Karol
This works for me! Are you sure that you are using a Font which contains these Chinese (?) characters.
Cheers
Karol
- Daniel Willer
- Posts: 309
- Joined: 06 Jan 2012, 18:12
Re: Enriched Blocktext ignores custom models
Hi,
Make sure that you have the right Character sets enabled in the ProjectProperties --> Culture.
Cherio!
Make sure that you have the right Character sets enabled in the ProjectProperties --> Culture.
Cherio!
Re: Enriched Blocktext ignores custom models
Hi Karol & Daniel,
thanks for your replies!
@Karol: The font has those characters.
@Daniel: All cultures were active.
I found the problem: The string had the wrong encoding: ANSI.
About my project: Parsing xml data via script and assign it to textblocks.
The XMLs had an encoding UTF-8 flag, but the file was/is ANSI encoded.
Thus XDocument drops no exception.
If the xmls have the correct encoding and the font doesn't have the characters,
none of those chars are shown and the custom models work.
Except this strange char: "。" . It doesn't work for me in NO case. Maybe it's a control char ....?
greets!
thanks for your replies!
@Karol: The font has those characters.
@Daniel: All cultures were active.
I found the problem: The string had the wrong encoding: ANSI.
About my project: Parsing xml data via script and assign it to textblocks.
The XMLs had an encoding UTF-8 flag, but the file was/is ANSI encoded.
Thus XDocument drops no exception.
If the xmls have the correct encoding and the font doesn't have the characters,
none of those chars are shown and the custom models work.
Except this strange char: "。" . It doesn't work for me in NO case. Maybe it's a control char ....?
greets!
Re: Enriched Blocktext ignores custom models
I found some more chars that are not "enriched text" compatible:
"。" <> .
"," <> ,
":" <> :
Please test those characters if you encounter the same problem.
Chars should be in a scaling custom node of enriched text.
Workaround:
I built some parts of the view with the "normal" text provider.
This one cannot change its size.....
But something goes wrong with the enriched one and I don't know why....
"。" <> .
"," <> ,
":" <> :
Please test those characters if you encounter the same problem.
Chars should be in a scaling custom node of enriched text.
Workaround:
I built some parts of the view with the "normal" text provider.
This one cannot change its size.....
But something goes wrong with the enriched one and I don't know why....
Re: Enriched Blocktext ignores custom models
I found a solution to avoid previous post problem:
Encode every string into a html-encoded string with System.Web.HttpUtility.HtmlEncode.
Too bad that I did not see that before. BUT that class removes chinese signs!
Cheers
Encode every string into a html-encoded string with System.Web.HttpUtility.HtmlEncode.
Too bad that I did not see that before. BUT that class removes chinese signs!
Cheers