#1 2015-02-04 04:40:31

keinn
Member
Registered: 2014-10-20
Posts: 103

SynMustache bug report (maybe?)

it can not parse or render Chinese Content .
e.g:
testTpl :=TSynMustache.parse('<h1>Hello {{data.name}} 中国中国 {{data.value}} dollars!</h1>');

mmo2.Text :=testTpl.RenderJSON('{data:{name:"中国",value:10000}}');

it just return some unreadable chars~~~

.
btw:i think add  a "loadTemplateFromFile"  func would be nice~~

Offline

#2 2015-02-04 07:50:03

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: SynMustache bug report (maybe?)

You need to convert to utf8 your input content.

Offline

Board footer

Powered by FluxBB