Re: charset and encodings

kunitoki <[email protected]>
Newsgroups gmane.comp.java.helma.general
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.