osdir.com
mailing list archive
Mozy Online Backup: 2GB Free. Automatic. Secure.

Subject: RE: Charsets - msg#00013

List: java.ikvm.devel

Date: Prev Next Index Thread: Prev Next Index
Hi,

OK. It's currently broken, but you can use system properties to create aliases
for encodings.

ikvm -Dgnu.java.io.encoding_scheme_alias.Cp1252=8859_1 test

This will make Cp1252 an alias for 8859_1. I think this only works for old
school encodings, not the nio stuff.

As I said, it's currently broken (command line property names are converted to
lowercase), but you might try adding this to your code:

System.setProperty("gnu.java.io.encoding_scheme_alias.Cp1252", "8859_1")

Regards,
Jeroen

> -----Original Message-----
> From: ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx
> [mailto:ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx] On
> Behalf Of Cédric CHAMPEAU
> Sent: Tuesday, October 12, 2004 14:40
> To: ikvm-developers@xxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [Ikvm-developers] Charsets
>
> Well, it can't : the program is a parser which takes various
> file formats
> (MS Word, PDF, ...), detects encoding, and reads the file
> with the according
> encoding. Moreover, I have no access to source code (in fact,
> I have, but
> this library is managed by other developers of my company, who are
> responsible for the evolutions).
>
> I think I'll have to find another solution. Tryied to process
> charsets.jar
> with ikvmc, but generates too much errors ;) Worth trying ;)
>
> > -----Message d'origine-----
> > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx]
> > Envoyé : mardi 12 octobre 2004 13:33
> > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx
> > Objet : RE: [Ikvm-developers] Charsets
> >
> > Hi,
> >
> > That's right. Classpath doesn't include that character
> > encoding (yet). You might try using ISO-8859-1 instead, it is
> > very similar (it only misses a number of characters in the
> > 0x80 - 0x9F range).
> >
> > Regards,
> > Jeroen
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IT Product Guide on
> ITManagersJournal
> Use IT products in your business? Tell us what you think of
> them. Give us
> Your Opinions, Get Free ThinkGeek Gift Certificates! Click to
> find out more
> http://productguide.itmanagersjournal.com/guidepromo.tmpl
> _______________________________________________
> Ikvm-developers mailing list
> Ikvm-developers@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
>
>


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

RE: Charsets

Well, it can't : the program is a parser which takes various file formats (MS Word, PDF, ...), detects encoding, and reads the file with the according encoding. Moreover, I have no access to source code (in fact, I have, but this library is managed by other developers of my company, who are responsible for the evolutions). I think I'll have to find another solution. Tryied to process charsets.jar with ikvmc, but generates too much errors ;) Worth trying ;) > -----Message d'origine----- > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > Envoyé : mardi 12 octobre 2004 13:33 > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > Objet : RE: [Ikvm-developers] Charsets > > Hi, > > That's right. Classpath doesn't include that character > encoding (yet). You might try using ISO-8859-1 instead, it is > very similar (it only misses a number of characters in the > 0x80 - 0x9F range). > > Regards, > Jeroen > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Next Message by Date: click to view message preview

RE: Charsets

Thanks for the ip, I'll try it asap. > -----Message d'origine----- > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > Envoyé : mardi 12 octobre 2004 15:13 > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > Objet : RE: [Ikvm-developers] Charsets > > Hi, > > OK. It's currently broken, but you can use system properties > to create aliases for encodings. > > ikvm -Dgnu.java.io.encoding_scheme_alias.Cp1252=8859_1 test > > This will make Cp1252 an alias for 8859_1. I think this only > works for old school encodings, not the nio stuff. > > As I said, it's currently broken (command line property names > are converted to lowercase), but you might try adding this to > your code: > > System.setProperty("gnu.java.io.encoding_scheme_alias.Cp1252", > "8859_1") > > Regards, > Jeroen > > > -----Original Message----- > > From: ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx > > [mailto:ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx] On > > Behalf Of Cédric CHAMPEAU > > Sent: Tuesday, October 12, 2004 14:40 > > To: ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [Ikvm-developers] Charsets > > > > Well, it can't : the program is a parser which takes various > > file formats > > (MS Word, PDF, ...), detects encoding, and reads the file > > with the according > > encoding. Moreover, I have no access to source code (in fact, > > I have, but > > this library is managed by other developers of my company, who are > > responsible for the evolutions). > > > > I think I'll have to find another solution. Tryied to process > > charsets.jar > > with ikvmc, but generates too much errors ;) Worth trying ;) > > > > > -----Message d'origine----- > > > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > > > Envoyé : mardi 12 octobre 2004 13:33 > > > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > > Objet : RE: [Ikvm-developers] Charsets > > > > > > Hi, > > > > > > That's right. Classpath doesn't include that character > > > encoding (yet). You might try using ISO-8859-1 instead, it is > > > very similar (it only misses a number of characters in the > > > 0x80 - 0x9F range). > > > > > > Regards, > > > Jeroen > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on > > ITManagersJournal > > Use IT products in your business? Tell us what you think of > > them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > > find out more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Ikvm-developers mailing list > > Ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Previous Message by Thread: click to view message preview

RE: Charsets

Well, it can't : the program is a parser which takes various file formats (MS Word, PDF, ...), detects encoding, and reads the file with the according encoding. Moreover, I have no access to source code (in fact, I have, but this library is managed by other developers of my company, who are responsible for the evolutions). I think I'll have to find another solution. Tryied to process charsets.jar with ikvmc, but generates too much errors ;) Worth trying ;) > -----Message d'origine----- > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > Envoyé : mardi 12 octobre 2004 13:33 > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > Objet : RE: [Ikvm-developers] Charsets > > Hi, > > That's right. Classpath doesn't include that character > encoding (yet). You might try using ISO-8859-1 instead, it is > very similar (it only misses a number of characters in the > 0x80 - 0x9F range). > > Regards, > Jeroen > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

Next Message by Thread: click to view message preview

RE: Charsets

Thanks for the ip, I'll try it asap. > -----Message d'origine----- > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > Envoyé : mardi 12 octobre 2004 15:13 > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > Objet : RE: [Ikvm-developers] Charsets > > Hi, > > OK. It's currently broken, but you can use system properties > to create aliases for encodings. > > ikvm -Dgnu.java.io.encoding_scheme_alias.Cp1252=8859_1 test > > This will make Cp1252 an alias for 8859_1. I think this only > works for old school encodings, not the nio stuff. > > As I said, it's currently broken (command line property names > are converted to lowercase), but you might try adding this to > your code: > > System.setProperty("gnu.java.io.encoding_scheme_alias.Cp1252", > "8859_1") > > Regards, > Jeroen > > > -----Original Message----- > > From: ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx > > [mailto:ikvm-developers-admin@xxxxxxxxxxxxxxxxxxxxx] On > > Behalf Of Cédric CHAMPEAU > > Sent: Tuesday, October 12, 2004 14:40 > > To: ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [Ikvm-developers] Charsets > > > > Well, it can't : the program is a parser which takes various > > file formats > > (MS Word, PDF, ...), detects encoding, and reads the file > > with the according > > encoding. Moreover, I have no access to source code (in fact, > > I have, but > > this library is managed by other developers of my company, who are > > responsible for the evolutions). > > > > I think I'll have to find another solution. Tryied to process > > charsets.jar > > with ikvmc, but generates too much errors ;) Worth trying ;) > > > > > -----Message d'origine----- > > > De : Jeroen Frijters [mailto:jeroen@xxxxxxxxxx] > > > Envoyé : mardi 12 octobre 2004 13:33 > > > À : Cédric CHAMPEAU; ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > > Objet : RE: [Ikvm-developers] Charsets > > > > > > Hi, > > > > > > That's right. Classpath doesn't include that character > > > encoding (yet). You might try using ISO-8859-1 instead, it is > > > very similar (it only misses a number of characters in the > > > 0x80 - 0x9F range). > > > > > > Regards, > > > Jeroen > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on > > ITManagersJournal > > Use IT products in your business? Tell us what you think of > > them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to > > find out more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Ikvm-developers mailing list > > Ikvm-developers@xxxxxxxxxxxxxxxxxxxxx > > https://lists.sourceforge.net/lists/listinfo/ikvm-developers > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by