Saturday, 30 January 2021

Java12: Unicode support

Unicode 11.0 is the latest version of the Unicode Standard, released on June 5, 2018. Unicode 11.0 adds 684 characters, for a total of 137,374 characters. These additions include 7 new scripts, for a total of 146 scripts, as well as 66 new emoji characters.

 

Unicode11Example.java

package com.sample.app.strings;

public class Unicode11Example {
	public static void main(String args[]) {
		String emoji1 = "\uD83E\uDD76";
		String emoji2 = "\uD83E\uDD81";
		String emoji3 = "\uD83E\uDD85";
		
		System.out.println(emoji1 + " " + emoji2 + " " + emoji3);
	}

}

Output

🥶 🦁 🦅

 

Reference

https://unicode.org/versions/Unicode11.0.0/

https://home.unicode.org/emoji/


  

Previous                                                    Next                                                    Home

No comments:

Post a Comment