How to show the html files normally?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How to show the html files normally?

Postby wter26 » Thu Feb 08, 2024 11:16 pm

I used the code below to support the chinese artiles of the html files.
But in fact it seemed unuseful.
I found that the source html file dose not has the encoding set,so how to solve this problem?
Code: Select all
   
config.setLocale("zh-CN");
     
config.setAcceptLanguageList("zh-CN");
     
config.setPersistSessionCookies(true);
wter26
Newbie
 
Posts: 5
Joined: Thu Feb 01, 2024 8:28 pm

Re: How to show the html files normally?

Postby magreenblatt » Fri Feb 09, 2024 9:32 am

You should fix the server or html files to properly specify the encoding.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 221 guests