Re: [Wicket-user] Page encoding

2007-07-23 Thread wheleph
Martijn Dashorst wrote: > > http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html > Thanks for the great link. I've set default markup encoding explicitly and it gave the desired result: public class EcoApplication extends SpringWebApplication { ... public final vo

[Wicket-user] Page encoding

2007-07-23 Thread wheleph
Hello everyone! My page markups contain cyrillic strings and the files are encoded in cp1251. If the server's locale is set to Russian everything works fine. But if it's set to English (US) I get Âõîä instead of Вход. I examined character codes and figured out that the problem is that the mark

Re: [Wicket-user] .properties encoding

2007-07-20 Thread wheleph
igor.vaynberg wrote: > > The problem here is specifying the charset, properties factory is global > so > you might encode your files one way but a jar you use with components > might > have them encoded in another charset - so we cannot really have a global > charset specified. i think the prope

Re: [Wicket-user] .properties encoding

2007-07-19 Thread wheleph
I've solved the problem in the following way: 1. I've created CustomPropertiesFactory subclass of PropertiesFactory and put it in wicket.resource package (to get access to wicket.resource.Properties' package-private constructor) package wicket.resource; ... public class CustomPropertiesFactory e

Re: [Wicket-user] .properties encoding

2007-07-19 Thread wheleph
Matej Knopp-2 wrote: > > You can't. Java property files are always encoded in ISO-8859-1. > I don't think so because actual loading look like this: properties.load(new BufferedInputStream(resourceStream.getInputStream())); strings = new ValueMap(properties); java.util.Properties.load(InputSt

[Wicket-user] .properties encoding

2007-07-19 Thread wheleph
Hi everyone! I've got the following problem. My component needs to display a cyrillic string. I put it in corresponding .propreties with encoding cp1251. But it's read like Íåïðàâèëüíûé ëîãèí/ïàðîëü instead of Неправильный логин/пароль The problem is that the file is read like iso-8859-1. H