From: David G. <dav...@po...> - 2004-08-29 20:44:53
|
David Gravereaux <dav...@po...> wrote: >How do I change the encoding a page is served-out as? I'm getting data >loss as my page generating sources give full unicode. Is there a way from >the template file to manipulate the MIME header info and the encoding on >the actual socket channel for the Httpd_ReturnData? Never mind.. I discovered what I was doing wrong. pseudo code to explain why: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> ... [encoding convertto utf-8 [MyProcThatReturnsUnicode]] ... </html> I had forgotten that a channel whose encoding is iso8859-1 is essentially a pass-thru. If I convert from the internal rep to utf-8 and claim it as utf-8 in the meta data of the file served, as is well. -- David Gravereaux <dav...@po...> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] |