This would actually not be an issue except somewhere along the line, one of those parsers messes up every % character. It treats it as the start of some special encoding I think. Anyways, by the time the lua code finally makes it into the temporary file all % characters and all the characters around them are terribly garbled. This is very unfortunate since a good chunk of the code uses string.format. There is no way to fix the parser(s) or I would have done so long before I came here.
Performance doesn't matter in the slightest. Neither does code size or anything like that. It just has to work. With this in mind I thought I would go find a snippet of code that decoded base64, and any strings that use % I would replace with the decoding function and the base64 representation of that string. That would have worked beautifully except for the minor fact all of the decoder functions I've found so far use string.format or the % somewhere in them.
Anyone have any better ideas?
This post has been edited by wd40bomber7: 05 June 2012 - 07:29 PM

New Topic/Question
Reply




MultiQuote







|