fork download
  1. class Ideone {
  2. public static void main (String[] args) throws java.lang.Exception {
  3. String s = "𝚙𝚛𝚘𝚐𝚛𝚊𝚖𝚖𝚒𝚗𝚐 𝚌𝚑𝚊𝚕𝚕𝚎𝚗𝚐𝚎𝚜";
  4. for (int i = 0; i < s.length(); i++) {
  5. System.out.print("&#" + (int)s.codePointAt(i) + ";");
  6. if (Character.isHighSurrogate(s.charAt(i))) {
  7. i++;
  8. }
  9. }
  10. }
  11. }
  12.  
Success #stdin #stdout 0.1s 35964KB
stdin
Standard input is empty
stdout
&#120473;&#120475;&#120472;&#120464;&#120475;&#120458;&#120470;&#120470;&#120466;&#120471;&#120464;&#32;&#120460;&#120465;&#120458;&#120469;&#120469;&#120462;&#120471;&#120464;&#120462;&#120476;