How to create and use an enumeration that have some special characters and spaces within its values ?
object Bots extends Enumeration {
type Bots = Value
val `apis-google`, `mediapartners-google`, `adsbot-google-mobile-apps`, `google favicon` = Value
}
When this enumeration is called, the special characters seems to be replaced by some internal identifiers or changed their encoding:
for (bot <- Bots.values) println(bot)
output:
apis$minusgoogle mediapartners$minusgoogle adsbot$minusgoogle$minusmobile$minusapps google$u0020favicon
EDIT : Im using scala 2.2