
Anonymous
Not applicable
2012-12-10
11:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
tChangeFileEncoding
Hello,
I am trying to use the tChangeFileEncoding component without specifying the input encoding format.
What does this component exatly do it that case?
Does it determine itself the input encoding format ?
Currently, if I try to convert an ANSI text file to UTF-8 using this component, all accentuated caracters are currupted.
rgds
JL Lecardinal
I am trying to use the tChangeFileEncoding component without specifying the input encoding format.
What does this component exatly do it that case?
Does it determine itself the input encoding format ?
Currently, if I try to convert an ANSI text file to UTF-8 using this component, all accentuated caracters are currupted.
rgds
JL Lecardinal
183 Views
3 Replies

Anonymous
Not applicable
2012-12-10
11:33 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you use the tChangeFileEncoding component without specifying the input encoding format, it will get your system encoding by default.
I have make a test for converting an ANSI text file to UTF-8 using this component, but there is an exception popped up.
I doubt that we cannot support this Encoding.
Best regards
Sabrina
If you use the tChangeFileEncoding component without specifying the input encoding format, it will get your system encoding by default.
java.io.BufferedReader in_tChangeFileEncoding_1 = new java.io.BufferedReader(
new java.io.InputStreamReader(
new java.io.FileInputStream(
sOriFileN_tChangeFileEncoding_1),
System.getProperty("file.encoding")));
I have make a test for converting an ANSI text file to UTF-8 using this component, but there is an exception popped up.
Exception in component tChangeFileEncoding_1
java.io.UnsupportedEncodingException: ANSI
at sun.nio.cs.StreamDecoder.forInputStreamReader(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at demo.changefileencoding_0_1.ChangeFileEncoding.tChangeFileEncoding_1Process(ChangeFileEncoding.java:294)
at demo.changefileencoding_0_1.ChangeFileEncoding.runJobInTOS(ChangeFileEncoding.java:520)
at demo.changefileencoding_0_1.ChangeFileEncoding.main(ChangeFileEncoding.java:388)
connecting to socket on port 3515
connected
disconnected
Job ChangeFileEncoding ended at 12:28 11/12/2012.
I doubt that we cannot support this Encoding.
Best regards
Sabrina
183 Views

Anonymous
Not applicable
2012-12-11
01:52 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is called ASCII not ANSI.
183 Views

Anonymous
Not applicable
2012-12-11
02:00 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
@jlolling, you are so great! If it is ASCII, we can support that. I also wonder what is "ANSI"....
Best regards
Sabrina
It is called ASCII not ANSI.
@jlolling, you are so great! If it is ASCII, we can support that. I also wonder what is "ANSI"....
Best regards
Sabrina
183 Views
