[Seaside] Accent in generated pages

Alexandre Bergel alexandre.bergel at me.com
Wed Jun 17 19:05:08 UTC 2015


I am migrating code from Amber to Pharo, and I am facing a problem with the accent. Consider the following example:

	| fullDocument fs canvas |
	canvas := WAHtmlCanvas builder.
	canvas fullDocument: true.
	canvas rootClass: ABHtmlRoot.
	fullDocument :=  canvas render: [ :html | 
		html text: 'Ñuñoa'

	fs  := FileStream forceNewFileNamed: '/tmp/test.html'.
	fs nextPutAll: fullDocument.
	fs close.

Opening the file in a web browser shows me: Ñuñoa

Is there a way to prevent this? 


Alexandre Bergel  http://www.bergel.eu

More information about the seaside mailing list