This is a migrated thread and some comments may be shown as answers.

How to use non-ascii characters in templates?

6 Answers 303 Views
Templates
This is a migrated thread and some comments may be shown as answers.
King Wilder
Top achievements
Rank 2
King Wilder asked on 23 Jan 2013, 08:52 PM
I need to use characters like "plus minus" or "lambda" symbols, and I would normally use ± and λ, but those key references simply display like that, and not encoded as the characters. 

Does anyone know how I can get these types of characters into a template?  I'll be populating the template from JSON data.

Thanks,

King Wilder

6 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Jan 2013, 07:50 AM
Hello King,

 You need to use #= # instead of #: # in such cases. More info can be found in the Kendo Templates documentation.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
King Wilder
Top achievements
Rank 2
answered on 24 Jan 2013, 05:46 PM
Atanas,

Yup that worked!

I was using:
<div class="optics-description">${description}</div>
What are the differences between the two options, ${...} adn #= ... # and when do I use one over the other?

Thanks,

King Wilder
0
Atanas Korchev
Telerik team
answered on 25 Jan 2013, 05:49 AM
Hi,

 The differences are explained in the linked help topic. The ${} is the same as #: #.

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
King Wilder
Top achievements
Rank 2
answered on 25 Jan 2013, 03:20 PM
Atanas,

I read the documentation twice and didn't see a reference to the ${...} syntax.  Am I blind or is it not there?

Thanks,

King Wilder
0
Petyo
Telerik team
answered on 26 Jan 2013, 12:51 PM
Hello King,

The ${} is a deprecated template syntax - that is why it is not mentioned in the documentation. 

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
King Wilder
Top achievements
Rank 2
answered on 26 Jan 2013, 08:07 PM
Petyo,

Ah, ok I understand.  I'll remember to use #= # or #: # from now on.

Thanks,

King Wilder
Tags
Templates
Asked by
King Wilder
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
King Wilder
Top achievements
Rank 2
Petyo
Telerik team
Share this question
or