티스토리 뷰
>>> print "한글도메인.com".decode('utf-8').encode('idna')
xn--bj0bj3i97fq8o5lq.com
>>> print "xn--bj0bj3i97fq8o5lq.com".decode('idna').encode('utf-8')
한글도메인.com
외부 명령어나, 다른 모듈 필요 없이 idna 인/디코딩으로 변환할 수 있습니다.
'프로그래밍' 카테고리의 다른 글
| Gmail 링크 뒤 그 문자열, 알고 보니 인코딩된 thread ID였다 (0) | 2026.08.06 |
|---|---|
| git에서 시크릿 파일 삭제 방법 (0) | 2021.03.29 |
| Bash 10진수를 2진수로 변환 (0) | 2020.03.06 |
| Python 시간 변환 (0) | 2020.03.06 |
| Python 스위치에서 트래픽 정보 수집 (0) | 2020.03.06 |
댓글
warpmemory
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
페이지
TAG
- configuration
- command
- Ansible
- engineering
- Python
- MariaDB
- 예제
- check
- deview
- Windows
- RESTful
- 명령어
- apache
- 번역
- 이슈처리
- 외부링크
- PowerShell
- error
- 코드
- httpd
- example
- monitoring
- Web
- Module
- File
- client
- code
- Linux
- mysql
- limits
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
글 보관함