How to find Java Character Set/Encoding in Linux


If you want to know about Character set used by Java on Linux Server then follow the following Steps:
1.) Create a file named as CharacterEncodingExample.java.
2.) Copy & Paste the code to new created file.
3.) Compile Java source code as :
#javac CharacterEncodingExample.java
4.) Then run the compiled program.
 
[mc26157@ph132704]~$ java CharacterEncodingExample
defaultCharacterEncoding by property: UTF-8
defaultCharacterEncoding by code: UTF8
defaultCharacterEncoding by charSet: UTF-8
 

About Manish Jha

Manish is currently working as Staff Solutions Engineer at VMware. I have 12 years of experience in handling Datacenter & Cloud technologies including VMware vSphere, VMware Cloud Director, VMware NSX,vSphere Replication & VMware HCX. For my contribution towards community, I have been felicitated with following awards: vExpert: 2014-2023 vExpert NSX: 2012-2020, vExpert Cloud: 2017-2021 vExpert HCX: 2018-2022 vExpert Pro: 2020-23 I blog at www.vstellar.com If you find any post informational to you please press like and share it across social media and leave your comments if you want to discuss further on any post.
This entry was posted in Linux/CentOS. Bookmark the permalink.

1 Response to How to find Java Character Set/Encoding in Linux

  1. I like Your Report about Why We Keep track of | J Squared Consulting Excellent just what I was searching for!

    Like

Leave a comment