Jump to content




How many valid characters in CC


  • You cannot reply to this topic
7 replies to this topic

#1 davidgumazon

  • Members
  • 30 posts
  • LocationPhilippines

Posted 15 March 2015 - 10:10 AM

Hi Guys i want to know how many Characters valid in CC to read file safely?
cuz i want make ID Generator for ComputerCraft Adds-On. ;)

Aa,Bb,Cc,Dd,Ee,Ff,Gg,Hh,Ii,Jj,Kk,Ll,Mm,Nn,Oo,Pp,Qq,Rr,Ss,Tt,Uu,Vv,Ww,Xx,Yy,Zz (26x2)
0,1,2,3,4,5,6,7,8,9 (10)
!@#$%^&*()-=_+{}:"<>?|[]\;',./ (30)
Unknown? (??)

like Copyright mark,Registered mark, and ?

#2 RoD

  • Members
  • 313 posts

Posted 15 March 2015 - 05:54 PM

There are currently 94 characters (32 to 126 in decimal) You can see here the decimal value:
Spoiler


#3 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 16 March 2015 - 09:36 PM

View PostRoD, on 15 March 2015 - 05:54 PM, said:

...
Well there's more than that, there's also some special characters. I'll see if I find the topic with the answer, as I've seen it here in AaP.

#4 RoD

  • Members
  • 313 posts

Posted 17 March 2015 - 07:17 PM

View PostTheOddByte, on 16 March 2015 - 09:36 PM, said:

View PostRoD, on 15 March 2015 - 05:54 PM, said:

...
Well there's more than that, there's also some special characters. I'll see if I find the topic with the answer, as I've seen it here in AaP.

But within computercraft? I mean i have ran a loop that converts to bytes the iteration number so i tested from 0 to (more or less) 500 and i only got displayable characters within the range of 32-126. So you mean there is more? I know that you can write to a file and use charachters like Á, Ã, Â if you use a text editor, and i also know you can save the returned value of, example: string.char(128) and save it to a file, but nothing more. I will wait for your response, because if we can use more characters that would be awesome.

#5 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 17 March 2015 - 08:42 PM

View PostRoD, on 17 March 2015 - 07:17 PM, said:

...
Well string.char can take more than one argument you know? ;)

#6 RoD

  • Members
  • 313 posts

Posted 18 March 2015 - 07:57 PM

View PostTheOddByte, on 17 March 2015 - 08:42 PM, said:

View PostRoD, on 17 March 2015 - 07:17 PM, said:

...
Well string.char can take more than one argument you know? ;)
From what i know string.char() will return a string with the chars corresponding to each byte given in the arguments. So i don't think that helps much. :P

#7 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 18 March 2015 - 10:00 PM

View PostRoD, on 18 March 2015 - 07:57 PM, said:

...
From what I remember, the person from the topic did something like this to get the special characters
string.char( 195, 63 )
Note: I've just put in random numbers :P

#8 RoD

  • Members
  • 313 posts

Posted 19 March 2015 - 08:11 PM

View PostTheOddByte, on 18 March 2015 - 10:00 PM, said:

View PostRoD, on 18 March 2015 - 07:57 PM, said:

...
...

How? Look what it gave me:
Spoiler






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users