[Helma-user] charset and encodings
kunitoki
kunitoki at gmail.com
Wed May 9 18:03:56 CEST 2007
is it normal that:
public static String convertHac(Resource action) throws IOException {
String functionName = action.getBaseName().replace('.', '_') +
"_action";
return composeFunction(functionName, null, action.getContent());
}
but action.getContent(charset) take the charset, and so the files are readed
from the disk as iso-8859-1, and i have files in utf8...
all seems strange to me, in fact hard coding (not a good way but just to
show you):
public static String convertHac(Resource action) throws IOException {
String functionName = action.getBaseName().replace('.', '_') +
"_action";
return composeFunction(functionName, null,
action.getContent("UTF-8"));
}
now i don't get any more strange characters if i have source .hac in UTF-8
(which i normally do)
--
View this message in context: http://www.nabble.com/charset-and-encodings-tf3714850s2589.html#a10397355
Sent from the Helma - User mailing list archive at Nabble.com.
More information about the Helma-user
mailing list