i have a text file with WINDOWS-1252 characters like ø and ß. the file is being uploaded via form submit to a servlet, where it's being parsed with opencsv and returned as a List object to a jsp page where it's displayed. the utf-8 chars are displayed as ? and i'm trying to figure out where along the way the encoding might have gone wrong. i've tried a bunch of stuff:
my page has the tag
<%@page contentType="text/html" pageEncoding="WINDOWS-1252"%>
file input is encoded -
new FileInputStream(file), "WINDOWS-1252")
every string is encoded -
s = new String(s.getBytes("WINDOWS-1252"));
where else can the encoding fail? any ideas?