한글과 유니코드
유니코드에서 한글을 어떻게 다루는지를 정리하였다.
유니코드
- 유니코드(Unicode)는 전 세계의 모든 문자를 컴퓨터에서 일관되게 표현하고 다룰 수 있도록 설계된 산업 표준 (위키 백과)
- 단순히 문자마다 번호를 붙임
- 계속 업데이트되며 현재는 Unicode Version 9.0.0 이 최신이다.
UTF
- 유니코드를 실제 파일 등에 어떻게 기록할 것인지를 표준화한 것이다.
유니코드에서 한글을 어떻게 다루는지를 정리하였다.
#-*- coding:utf-8 - *- | |
def load_dataset(): | |
"Load the sample dataset." | |
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]] | |
def createC1(dataset): | |
"Create a list of candidate item sets of size one." |
public class MainActivity extends android.support.v4.app.FragmentActivity { | |
// Only one MapView instance is allowed per MapActivity, | |
// so we inflate it in the MainActivity and tie its | |
// lifetime here to the MainActivity. Package scope | |
// so we can grab them from different instances of map | |
// fragments. | |
// | |
// The other option was to make them static, but that causes | |
// memory leaks on screen rotation. | |
View mMapViewContainer; |