Written by

Question alex chang · Sep 10, 2020

How to change default html file charset ?

I put a html file into ensemble dir ,it's encoding is utf-8.

But when I access this file througn browser, It show incorrectly

I checked http response header, It content-type charset is GB18030 So that's reason

How to change the charset to UTF-8?

 

Tks.

Comments

Dmitry Maslennikov · Sep 10, 2020

Check the value stored in ^%SYS("CSP","DefaultFileCharset"), if there is no value or there is something different to utf-8, try to change it there.

0
alex chang  Sep 10, 2020 to Dmitry Maslennikov

Tks ,It worked,

0