Paulo Cereda
06/27/2025, 3:42 PM.properties
file correctly loads entries as UTF-8 — once the reader
is using the correct charset, Properties
works as expected. Consider this excerpt:
val expected = mapOf(
"italian" to "anatra",
"russian" to "утка",
"chinese" to "鸭子",
"japanese" to "アヒル",
"korean" to "오리",
"arabic" to "بطه",
"hindi" to "बत्तख",
...
)
I was wondering if I should hardcode these strings into the Kotlin file, specially that I have RTL ones in there. Is this okay or there is a better way? Any suggestions are welcome! Thanks!ephemient
06/27/2025, 3:46 PMephemient
06/27/2025, 3:49 PMPaulo Cereda
06/27/2025, 4:03 PMloke
06/28/2025, 5:00 PM"\uXXXX"
syntax. That's what I do.loke
06/28/2025, 5:01 PMephemient
06/28/2025, 5:37 PM\u{XXXXX}
and IMO it's less clear than having the literal character there because the surrogate representation isn't how we think of the character in any other situation