Results 1 to 5 of 5
  1. #1
    nimitha is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default convert fullwidth characters into halfwidth automatically

    Hi All,

    Any one knows how to convert a fullwidth characters to halfwidth characters.
    I want to convert my price value (Which is declared as BigDecimal) and
    quantity ( which is specified as double) to half width character.
    And also I want to know how to test these data.I am using struts code

    Thanks in advance..

    Nimitha

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Are you talking about normalizing? There an API for normalizing in Suns' web site. Check on the Suns' tutorial.

  3. #3
    nimitha is offline Member
    Join Date
    Jul 2008
    Posts
    3
    Rep Power
    0

    Default convert fullwidth characters into halfwidth automatically

    Hi,

    Thanks for your reply.
    It is not related to normalization.It is related to unicode characters using
    some conversion method.

    Nimitha

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,585
    Rep Power
    25

    Default

    Some confusion in your terms. Numerical values do not have widths.
    Printed characters have width. Use of fonts can change the width of printed output.
    Are you refering to the number of bytes to hold data for example in a file?
    Unicode takes two bytes for a character. ASCII takes 1 byte.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Are you talking about character width of UNICODE and ASCII? Norm give the answer on his last post. Better to explain it more. What conversion are you looking to do using UNICODE characters?

Similar Threads

  1. Replies: 6
    Last Post: 08-06-2008, 09:27 AM
  2. Automatically File Upload to server ...Help Needed
    By 82rathi.angara in forum New To Java
    Replies: 6
    Last Post: 08-05-2008, 07:13 AM
  3. Replies: 2
    Last Post: 07-04-2008, 12:33 PM
  4. Call a Method Automatically
    By rhm54 in forum New To Java
    Replies: 4
    Last Post: 02-07-2008, 08:51 AM
  5. Replies: 1
    Last Post: 08-07-2007, 05:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •