Here you can find the source of toLMBCS(final String value)
public static ByteBuffer toLMBCS(final String value)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; import java.nio.charset.Charset; public class Main { public static ByteBuffer toLMBCS(final String value) { Charset lmbcs = Charset.forName("x-lmbcs-1"); return lmbcs.encode(value); }/* ww w . j a va 2s . com*/ }