Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

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

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
errox

Enriched Blocktext ignores custom models

Post by errox » 17 May 2013, 13:13

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!

errox

Re: Enriched Blocktext ignores custom models

Post by errox » 22 May 2013, 11:52

Karol? Any idea?:>

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: Enriched Blocktext ignores custom models

Post by Karol » 22 May 2013, 14:32

Hi!

This works for me! Are you sure that you are using a Font which contains these Chinese (?) characters.

Cheers
Karol

User avatar
Daniel Willer
Posts: 309
Joined: 06 Jan 2012, 18:12

Re: Enriched Blocktext ignores custom models

Post by Daniel Willer » 23 May 2013, 09:30

Hi,

Make sure that you have the right Character sets enabled in the ProjectProperties --> Culture.

Cherio!

errox

Re: Enriched Blocktext ignores custom models

Post by errox » 23 May 2013, 15:03

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!

errox

Re: Enriched Blocktext ignores custom models

Post by errox » 23 May 2013, 16:59

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....

errox

Re: Enriched Blocktext ignores custom models

Post by errox » 23 May 2013, 18:04

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

Post Reply