A PHP Error was encountered

Severity: 8192

Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Filename: libraries/Filtered_db.php

Line Number: 23

Write a Java program to list the available character sets in charset objects
Q:

Write a Java program to list the available character sets in charset objects

0

Write a Java program to list the available character sets in charset objects
Expected Output

List of available character sets:                                       
Big5                                                                    
Big5-HKSCS                                                              
CESU-8                                                                  
EUC-JP                                                                  
EUC-KR                                                                  
GB18030                                                                 
GB2312                                                                  
GBK                                                                     
                                                     
...                                            
                                                   
x-SJIS_0213                                                             
x-UTF-16LE-BOM                                                          
X-UTF-32BE-BOM                                                          
X-UTF-32LE-BOM                                                          
x-windows-50220                                                         
x-windows-50221                                                         
x-windows-874                                                           
x-windows-949                                                           
x-windows-950                                                           
x-windows-iso2022jp

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.nio.charset.Charset;
public class Exercise40 {
  public static void main(String[] args) {
	System.out.println("List of available character sets: ");  
    for (String str : Charset.availableCharsets().keySet()) {
      System.out.println(str);
    }
  }
}

Sample Output:

List of available character sets:                                                                             
Big5                                                                                                      
Big5-HKSCS                                                                                                    
CESU-8                                                                                                      
EUC-JP                                                                                                      
EUC-KR                                                                                                      
GB18030                                                                                                      
GB2312                                                                                                      
GBK                                                                                                      
IBM-Thai                                                                                                      
IBM00858                                                                                                      
IBM01140          
-----
x-windows-950                                                                                                 
x-windows-iso2022jp

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now