head charset not work

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.

head charset not work

Postby webavatar » Thu Jan 24, 2013 12:10 am

With cef_binary_1.1180.832_windows, in OnBeforeResourceLoad:
I use the |response| object to set HeaderMap with a header:"Content-Type:text/plain; charset=gb2312". And return a CefStream object in |resourceStream| to specify data for the resource.
But the component "charset=gb2312" of the "Content-Type" not works. The resourceStream will be treated as "utf-8" , no matter what value assigned to "charset".
webavatar
Techie
 
Posts: 11
Joined: Tue Apr 24, 2012 9:03 am

Re: head charset not work

Postby magreenblatt » Thu Jan 24, 2013 1:03 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: head charset not work

Postby webavatar » Thu Jan 24, 2013 11:57 pm

I can't find "ResourceResponseInfo" mentioned in http://www.magpcss.org/ceforum/viewtopic.php?f=10&t=894. Could you give me some code to show how to use "ResourceResponseInfo" to set charset or where it is? Thanks.
webavatar
Techie
 
Posts: 11
Joined: Tue Apr 24, 2012 9:03 am


Return to Support Forum

Who is online

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