Skip to content
Advertisement

Saving to properties file escapes :

Does anyone know why the colons are getting escaped when I store the properties file?

I’m doing this:

JavaScript

And storing using:

JavaScript

It’s working but the output has colons escaped for some reason:

JavaScript

Anyone know a fix?

Advertisement

Answer

In properties files, both of these are legit:

JavaScript

So both = and : must be escaped.

Now, if you read the thing back with Properties, it’s no problem. Otherwise, you’ll have to write custom code

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement