• @Andreas_Rozek, what was the output of your test program?

    • length differences
    • character differences

    How did you compare character by character?

    My only explanation would be that the data read is not a string but concatenated to an empty string .toString() is applied and makes it what you expect... weird and not really reasonable... but JS is known for doing (sometimes) some conversion...

  • That's what looked so weird: "!==" was true (mind the extra "=" which means "without any conversion"), but when comparing lengths and character codes, everything was equal.

    Thus, I could

    • not compare the outcome of Storage.read with a string, but
    • use .length and .charCodeAt of the outcome of Storage.read without any problems and
    • compare the outcome of Storage.read with a string after appending to ''

Avatar for allObjects @allObjects started