Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- windows
- Golang
- c++
- tcp
- range
- File
- GO 언어
- bitcoin
- C
- Callback
- channel
- Close
- go
- http
- write
- json
- 영화
- FOR
- mutex
- 책
- go언어
- Python
- Linux
- 리뷰
- window
- Sync
- install
- package
- API
- JavaScript
Archives
- Today
- Total
목록멀티바이트 (1)
Code Habit
c/c++ 문자열 변환 : 멀티바이트 <-> 유니코드 <-> UTF-8
* 유니코드 -> 멀티바이트 wchar_t strUni[256] = L"유니코드"; char strUtf8[256] = { 0, }; int nLen = WideCharToMultiByte(CP_UTF8, 0, strUni, lstrlenW(strUni), NULL, 0, NULL, NULL); WideCharToMultiByte(CP_UTF8, 0, strUni, lstrlenW(strUni), strUtf8, nLen, NULL, NULL); * 멀티바이트 -> 유니코드 wchar_t strUnicode[256] = { 0, }; char strMultibyte[256] = { 0, }; wcscpy_s(strUnicode, 256, L"유니코드"); int len = WideCharToMultiBy..
카테고리 없음
2021. 6. 29. 12:32