검색결과 리스트
간체에 해당되는 글 1건
- 2010/08/20 중국어 간자체 변환
글
중국어 간자체 변환
IT/Dot Net
2010/08/20 13:31
일단 문자열 변환만 가능...
Public Function ToSCUnicode(ByVal str As String) As String
Dim arrByte_GBK As Byte()
Dim arrByte_UTF16 As Byte()
Dim strUTF16 As String
' 현재 시스템 인코딩
Dim _defaultEncoding As Encoding = System.Text.Encoding.GetEncoding(0)
' Chinese Simplified (GB2312)
Dim encGBK As System.Text.Encoding = System.Text.Encoding.GetEncoding(936)
' UTF - 16
Dim encUTF16 As System.Text.Encoding = System.Text.Encoding.Unicode()
' 현재 시스템 인코딩에서 받은 문자열을 Chinese Simplified (GB2312) 로 바이트로 변경
arrByte_GBK = _defaultEncoding.GetBytes(str)
' 다시 UTF-16 으로 변환
arrByte_UTF16 = System.Text.Encoding.Convert(encGBK, encUTF16, arrByte_GBK)
' 문자열로 추출
strUTF16 = encUTF16.GetString(arrByte_UTF16)
Return strUTF16
End Function
'IT > Dot Net' 카테고리의 다른 글
| CopySourceAsHtml 에러 수정 (0) | 2010/08/27 |
|---|---|
| 멀티캐스트 대리자 샘플 (0) | 2010/08/26 |
| 중국어 간자체 변환 (0) | 2010/08/20 |
| [펌]About Box 에 관한 좋은 소스 (0) | 2010/02/18 |
| [펌] C# 팝업폼 Activate(API) (1) | 2010/01/12 |
| CoolCommands 를 Visual Studio 2005 / 2008 에 명령프롬프트로 설치하기 (0) | 2009/09/25 |
