#Strange variable string problem

15 messages · Page 1 of 1 (latest)

chilly shell
#

So I was chatting with a friend and she brought up a problem from awhile back. She sent me 2 pictures. Picture 1 is the script and picture 2 being the output terminal.

Now, I have been looking at this for a solid 5 minutes and I have ZERO clue why myString's character length is 18. But this is not the weird part. I told her to copy and paste variable c's string value to replace myString's string variable and low and behold it's character count is 16. This has to be one of the most bizzare things I have ever seen. If you want to see it for yourself ill paste in the string below and go ahead and copy it into your own scripts; count the characters and go ahead and paste it into a character length counter online (that returned it to 16. Maybe its just Roblox studio). I need to see whether this is happening to other people as well or just me. Does anyone have an explanation to this??

The String:

I’m a programmer

#

FIY: I had to make a new print() statement in another experience and the same problem happened across different experiences. Weird

hearty quiver
#

could you copy and paste the code into here

hearty quiver
#

#

its not the same as '

#

its not an ASCII character so it takes up 3 bytes

#

that might be it

chilly shell
#

Oh my days it is, thanks!

vapid merlinBOT
#

studio** You are now Level 1! **studio

rain escarp
vapid merlinBOT
#

studio** You are now Level 6! **studio

hearty quiver
graceful hollowBOT
#
Program Output
3
1

rain escarp
#

Thats weird