/* Convert char to special encode format (GBK, UNICODE, ...)  */
uint16_t char_convert(uint16_t src_char, uint32_t type)
/* Convert char to special encode format (GBK, UNICODE, ...)  */
uint16_t char_convert(uint16_t src_char, uint32_t type)
{
	uint16_t dst_char;
	if(src_char < 0x80)
	{
        STRING_CONVERT_LOGI("%s ascii %d\n", __func__, src_char);
		return src_char;
	}
	switch(type)
	{
		case UNICODE_TO_GBK:
			dst_char = unicode_to_gbk(src_char);
			break;
		case GBK_TO_UNICODE:
		default:
			dst_char = 0;
			break;
	}
    STRING_CONVERT_LOGI("%s ascii %d\n", __func__, dst_char);
	return dst_char;
}