ASCII to character

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • FlamingDiamond

    #1

    ASCII to character

    I have this string: "60 105 109 103 32 115 114 99 61 34 101 108 111 46
    106 112 103 34 62", and I'd like to convert it to the characters. I've
    used the split method to separate it but I don't know how to transform
    each number in the character. Could you hel me?

    Thanks
  • MyndPhlyp

    #2
    Re: ASCII to character


    "FlamingDiamond " <FlamingDiamond @hotmail.com> wrote in message
    news:FgkWd.2527 68$r4.14820038@ news-reader.eresmas. com...[color=blue]
    > I have this string: "60 105 109 103 32 115 114 99 61 34 101 108 111 46
    > 106 112 103 34 62", and I'd like to convert it to the characters. I've
    > used the split method to separate it but I don't know how to transform
    > each number in the character. Could you hel me?[/color]

    String.fromChar Code()

    Consider yourself helled. <g>


    Comment

    • optimistx

      #3
      Re: ASCII to character

      FlamingDiamond wrote:[color=blue]
      > I have this string: "60 105 109 103 32 115 114 99 61 34 101 108 111 46
      > 106 112 103 34 62", and I'd like to convert it to the characters. I've
      > used the split method to separate it but I don't know how to transform
      > each number in the character. Could you hel me?
      >
      > Thanks[/color]
      alert(String.fr omCharCode(60, 105 ,109, 103, 32, 115, 114,99 ,61 ,34
      ,101 ,108, 111, 46 ,106, 112, 103, 34 ,62));

      Comment

      • Richard

        #4
        Re: ASCII to character

        On Sat, 05 Mar 2005 16:21:57 +0100 FlamingDiamond wrote:
        [color=blue]
        > I have this string: "60 105 109 103 32 115 114 99 61 34 101 108 111 46
        > 106 112 103 34 62", and I'd like to convert it to the characters. I've
        > used the split method to separate it but I don't know how to transform
        > each number in the character. Could you hel me?
        >
        > Thanks[/color]




        Interesting reading.


        Comment

        • Michael Winter

          #5
          Re: ASCII to character

          Richard wrote:

          [snip]
          [color=blue]
          > http://www.javascriptkit.com/jsref/string.shtml
          >
          > Interesting reading.[/color]

          Not particularly. Out-dated and inaccurate (in that string literals do
          not create String objects). Not much of a surprise.

          Please don't reference JavaScriptKit.c om for anything other than
          nostalgia or poking fun.

          Mike

          --
          Michael Winter
          Replace ".invalid" with ".uk" to reply by e-mail.

          Comment

          Working...