중국어 간자체 변환

Published Aug 20, 2010 | Updated Sep 22, 2022 | 0 comments

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

TAG INFORMATION

Learn more on this topic

Related Blog Posts

Join in the conversation

Leave a Comment

0 Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

무료 온라인 전광판

전광판

텍스트를 입력하고 텍스트 효과 및 배경효과 를 변경해서 전체화면으로 표시할 수 있는 전광판 용도로 사용하실 수 있습니다. 각종 스포츠 및 공연 관람시 응원 용도로 사용이 가능합니다.

Carousel

여러개의 슬라이드를 추가하여 프레젠테이션 및 이미지 슬라이드 용도로 사용하실 수 있습니다. 브라우저가 포함된 IT 기기로 큰 모니터에 연결하여 매장 내 공지사항 및 메뉴소개를 이미지로 표시할 수 있습니다.

Pin It on Pinterest

Shares
Share This

Share This

Share this post with your friends!

Shares