[Seaside] Accent in generated pages

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


Hi!

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? 

Cheers,
Alexandre

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.





More information about the seaside mailing list