Re: [Cppcms-users] Apache utf8 headers
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2012-07-02 06:15:37
|
On Monday, July 02, 2012 02:06:45 PM augustin wrote: > Maybe I should use this: > http://cppcms.com/cppcms_ref/latest/classcppcms_1_1http_1_1response.html > but I am confused by the discrepancy between the two sites, given that > they have the same code and the same settings. > Can this be considered as a small bug in cppcms? I fixed this by adding the following in my application: response().content_type("text/html; charset=UTF-8"); but maybe this is not the most appropriate way to handle this, or cppcms could have guessed the proper encoding from config.js. And if this is the proper solution, hopefully by putting it here, it will help someone else. Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://lesenjeux.fr/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://jacqueslemaire.fr/ http://www.wechange.org/ http://searching911.info/ . |