This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
so im going to be storing player inputted strings to the bank.
I dont mind a player storing style tags and such. But im wondering if anybody know of this leading to banks failing to load properly?
Style tags with the <> Im wondering if the bank will handle these correcty?
Or if I need to encode the special characters so they are friendly to the xml and then decode them?
or will the ingame xml reader handle it for me?
@SouLCarveRR: Go
I guess it does all the special character encoding itself. Has anybody run into any issues with this?
Why dont you test it yourself?
Just try to unput a string like
test."/>
and see what happens.
@Mille25: Go
I believe he did just test it himself. The editor does automatically make everything into it's special encoding like &whatever. I've never run into problems yet - and I have done it in the banks.
Just tested it with the String from above. It loads properly.
When taking a closer look you can see that the string gets saved like this in the bank file:
<Value string="test string."/>"/>
As you can see no " or > left in the test string. This means that there should be no problems with using XML-tags or similar sequences in strings.
'"' gets replaces with " '>' gets replaced with >
so im going to be storing player inputted strings to the bank.
I dont mind a player storing style tags and such. But im wondering if anybody know of this leading to banks failing to load properly?
Style tags with the <> Im wondering if the bank will handle these correcty?
Or if I need to encode the special characters so they are friendly to the xml and then decode them?
or will the ingame xml reader handle it for me?
@SouLCarveRR: Go
I guess it does all the special character encoding itself. Has anybody run into any issues with this?
Why dont you test it yourself?
Just try to unput a string like
and see what happens.
@Mille25: Go
I believe he did just test it himself. The editor does automatically make everything into it's special encoding like &whatever. I've never run into problems yet - and I have done it in the banks.
Just tested it with the String from above. It loads properly.
When taking a closer look you can see that the string gets saved like this in the bank file:
As you can see no " or > left in the test string. This means that there should be no problems with using XML-tags or similar sequences in strings.
'"' gets replaces with "
'>' gets replaced with >