I am reading the below line from an .sql file using Apache File Utilities.
INSERT INTO tablename (MESSAGE) VALUE('transfer of £[%1] to the following [%2]:');
but after reading i get the below:
'transfer of �[%1] to the following [%2]:'
problem: *£* is read in as �
I am using the below Code to read the file line by line :
LineIterator it = FileUtils.lineIterator(file, "UTF-8");
while (it.hasNext()) {
lineCount++;
line = it.nextLine();
System.out.println(line);
Print Line shows as : transfer of �[%1] to the following [%2]:'
when i see the variable watch in Netbeans it shows that char as \ufffd
Am i reading it with wrong encoding ?
Is there is any encoding i can use for SQL queries to be read ?