0

Hello – I've recently started adding Firebase Remote Config support to my android app. However, I've come to realise that any unicode strings that I set in either the default config or the remote config, get rendered as is.
For example, say there's a key currency and I set its value to \u20b9 - then my app renders it as-is, and NOT the rupee symbol (₹) like it should.

On a related note, how to have line feeds inserted into config values, such that when rendered, a line-feed is inserted and not the sequence - \n

anirvan
  • 4,797
  • 4
  • 32
  • 42

1 Answers1

0

Place \n in Firebase remote config. And in your code do

yourstirng.replaceAll("\\n", '\n');

Taha Malik
  • 2,188
  • 1
  • 17
  • 28