Numbers such as 402637 converted to Unicode characters such as ☷.
It is caused by incorrect regex pattern in TelegramBotManager.java, line 189:
Pattern p = Pattern.compile("(\\w[0x])([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);
I replaced it with
Pattern p = Pattern.compile("(0x)([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);
and it perfectly works with TeamCity 2021.1.2. To send ☷ I can just print it as 0x2637 in FreeMarker template.
It might be helpful to fix this in the project code.
Numbers such as 402637 converted to Unicode characters such as ☷.
It is caused by incorrect regex pattern in TelegramBotManager.java, line 189:
Pattern p = Pattern.compile("(\\w[0x])([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);
I replaced it with
Pattern p = Pattern.compile("(0x)([\\da-f]{4,5})", Pattern.CASE_INSENSITIVE);
and it perfectly works with TeamCity 2021.1.2. To send ☷ I can just print it as 0x2637 in FreeMarker template.
It might be helpful to fix this in the project code.