Here you can find the source of toAscii(char ch)
public static int toAscii(char ch)
//package com.java2s; public class Main { public static int toAscii(char ch) { if (ch <= 0xFF) { return ch; }//w ww. j a v a2s.c o m return 0x3F; } }