[plt-scheme] servlet, character encoding of data file contains sexps

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Nov 30 07:50:51 EST 2007

At Fri, 30 Nov 2007 06:22:49 -0500, "Geoffrey S. Knauth" wrote:
> I was playing with the web-server's useful quiz.ss, and I made a  
> chinese-questions.ss from english-measure-questions.ss.  I have some  
> lists with Chinese characters in them, e.g.:
> 
> 	("你" "泥" "拟" "呢")
> 
> I gather I should stick with UTF-8 encoding?  The servlet didn't seem  
> to like reading a file containing UTF-16.

Yes: the "quiz.ss" servlet reads the question file using `load', and
`load' reads a file as UTF-8.

Matthew



Posted on the users mailing list.