DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    json Guest

    how to convert to IA5 char set??


    does anyone know a way to convert chars to IA5 encoding? I think java doesnt
    support IA5 encoding yet...

  2. #2
    Paul Clapham Guest

    Re: how to convert to IA5 char set??

    As far as I can see from what I have been able to track down in various
    references, the IA5 encoding differs from the standard 7-bit ASCII encoding
    in only a single position, namely the ASCII '$' symbol is replaced by a
    generic currency symbol. Here's the references I found for the two
    character sets: IA5
    (http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.58), ASCII
    (http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.14).

    If this agrees with your information, I'd suggest you just treat it as ASCII
    until somebody complains.

    PC2

    "json" <jayson@sequelsolutions.com> wrote in message
    news:3b945ebd$1@news.devx.com...
    >
    > does anyone know a way to convert chars to IA5 encoding? I think java

    doesnt
    > support IA5 encoding yet...




  3. #3
    json Guest

    Re: how to convert to IA5 char set??


    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >As far as I can see from what I have been able to track down in various
    >references, the IA5 encoding differs from the standard 7-bit ASCII encoding
    >in only a single position, namely the ASCII '$' symbol is replaced by a
    >generic currency symbol. Here's the references I found for the two
    >character sets: IA5
    >(http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.58), ASCII
    >(http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.14).
    >
    >If this agrees with your information, I'd suggest you just treat it as ASCII
    >until somebody complains.
    >


    The table in your code doesnt seem similar with the one i have. The IA5 charset
    Im using is the one used by Nokia. Here's some examples:
    (symbol = value in hex)
    AT SIGN = 0000
    POUND STERLING = 0001
    DOLLAR SIGN = 0002
    YEN SIGN = 0003

    You can find the same table in this site:
    http://www.cmgtele.com/docs/SMSC_EMI...cation_3.5.pdf



  4. #4
    jay Guest

    Re: how to convert to IA5 char set??


    It looks like IA5 is the same as 7bit ASCII for most of the printing characters
    but most of the non-printing (i.e., control codes) codes (except CR and LF)
    have been replaced by other glyphs/characters. So if you are starting with
    7bit ASCII i think paul is basically correct, you can treat IA5 as if it
    were just US_ASCII or iso-8859-1. If, however, you have arbitrary UNICODE
    characters you will need to a UNICODE to IA5 conversion.

    "json" <jayson@sequelsolutions.com> wrote:
    >
    >"Paul Clapham" <pclapham@core-mark.com> wrote:
    >>As far as I can see from what I have been able to track down in various
    >>references, the IA5 encoding differs from the standard 7-bit ASCII encoding
    >>in only a single position, namely the ASCII '$' symbol is replaced by a
    >>generic currency symbol. Here's the references I found for the two
    >>character sets: IA5
    >>(http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.58), ASCII
    >>(http://publib.boulder.ibm.com/cgi-bi.../qb3aq501/F.14).
    >>
    >>If this agrees with your information, I'd suggest you just treat it as

    ASCII
    >>until somebody complains.
    >>

    >
    >The table in your code doesnt seem similar with the one i have. The IA5

    charset
    >Im using is the one used by Nokia. Here's some examples:
    >(symbol = value in hex)
    >AT SIGN = 0000
    >POUND STERLING = 0001
    >DOLLAR SIGN = 0002
    >YEN SIGN = 0003
    >
    >You can find the same table in this site:
    >http://www.cmgtele.com/docs/SMSC_EMI...cation_3.5.pdf
    >
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links