OZONE Asylum
Forums
DHTML/Javascript
Reading special characters with FileSystemObject
This page's ID:
27909
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Yes, I don't doubt I could do that, but I'll try to keep it to a single file and language as long as possible. I don't know the exact specifications for the engine when it runs in Samurize, other than I can't keep data in memory between function calls, it runs the engine once for each function call (I think), and the returned value is used as a meter value in Samurize. And that I don't have access to any kind of DOM-like interface... Think I'll try your approach when I've got this one up and running. The only problem I have now is displaying a hash correctly. The hash looks like this: (0x)76 DB CA D8 E9 B2 04 6C 05 D4 EB 03 D8 07 70 4A 54 76 75 82 in uTorrent, and is stored like that in resume.dat. (confirmed with a HEX editor) But I read it as ASCII, which is then automatically converted to Unicode (if I'm not totally mistaken) by JS. Somewhere this goes wrong so I can't convert it back and display the hash as it should look. When I loop through the stored string to get the character codes, this is what I get: 118 91 74 88 105 50 4 108 05 84 107 3 88 7 112 74 84 118 117 2 That these are the values returned by myString.charCodeAt(i) for each character in the JS String. Some of these values I can use, as they can directly represent the HEX value, but some make no sense to me. Like the last character (0x82 / char code 2)... This is what the whole hash looks like when opened in Notepad: vÛÊØé²lÔëØpJTvu? (I wonder how the Asylum will treat it :/) And here's the char code values I get if I manually put in in the code and use charCodeAt() on that string: 118 219 202 216 233 178 04 108 05 212 235 03 216 04 112 74 84 118 117 8218 Anyone who knows how to fix this, I'm starting to get confused about all these numbers... Probably has something to do with the reading of ASCII above code 127... Nurse! Meds please, the numbers are attacking me again!! /TwoD
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »