$ mingw-get install msys-gcc msys-make $ wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.12.tar.gz $ tar xvfz libiconv-1.12.tar.gz $ cd libiconv-1.12 $ ./configure $ make $ make install
é·ããæ´æ°ã®æ¢ã¾ã£ã¦ããããããã俺æåã³ã¼ããã·ãªã¼ãºã§ããã ãã®ãã³ãJava Advent Calendarã®ä¸ç°ã¨ãã¦å¾©æ´»ããã¾ããï¼ Java Advent Calendarã£ã¦ï¼ æ¬ã¨ã³ããªã¼ã¯Java Advent Calendarã®5æ¥ç®ã§ãã Java Advent Calendarã«ã¤ãã¦ã¯ã以ä¸ã®ãµã¤ããã覧ãã ããã http://atnd.org/events/22434 åã®4æ¥ç®ã¯ @akirakoyasu ããã®ãSDKã§èº«è¿ã«ãªãAmazon Web Serviceã http://www.akirakoyasu.net/2011/12/04/easily-use-aws-through-sdk/ S3ãSimpleDBãSESã®ä½¿ãæ¹ããµã³ãã«ã³ã¼ãã¤ãã§ç´¹ä»ãã¦ãã¾ãã 次ã®6æ¥ç®ã¯ @shuji_w6e ããã®ãJUnit ã®ã»ã«ã¤ã http:/
ghc7.0.2 utf8-stringãã¤ã³ã¹ãã¼ã«ã ãã¡ãåç § http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string cabal install utf8-string System.IO.UTF8ã®ã¢ã¸ã¥ã¼ã«ãè¦ãã¨ãã ãããIOå¨ããæã£ã¦ããï¼ appendFile hGetLine openBinaryFile readFile getContents hPStr print readLn getLine hPStrLn pStr withBinary hGetContents interact pStrLn writeFile 試ãã« Prelude> import System.IO.UTF8 as S Prelude System.IO.UTF8> S.writeFile "test
æ£è¦è¡¨ç¾ãçµãã§ãã¦ããªãã ãæãéãã®æåãããªããªã¼ã¨æã£ãæãæãåºãã¦ãã ããã ããã¥ã¢ã«:ãã¿ã¼ã³ä¿®é£¾å u (PCRE_UTF8) ãã®ä¿®æ£åã¯ãPerl éäºæ㪠PCRE ã®æ©è½ãæå¹ã«ãã¾ãããã¿ã¼ã³ æååã¯ãUTF-8 ã¨ã³ã³ã¼ããããæååã¨ãã¦å¦çããã¾ãã ãã®ä¿®æ£åã¯ãUNIX ã§ã¯ PHP 4.1.0 以éãWin32 ã§ã¯ PHP 4.2.3 以é㧠使ç¨å¯è½ã§ãã ã¾ããPHP 4.3.5 以éã§ã¯ããã¿ã¼ã³ã® UTF-8 ã¨ãã¦ã®å¦¥å½æ§ã確èªããã¾ãã UTF-8ãªæååãpregç³»ã§ä½¿ã£ã¦ããæã¯ãuãªãã·ã§ã³ãæå¹ã«ãã¾ãããï¼
ä»æ¥ã¯ä»¥åã®ãUbuntuã®vimãå¿«é©ã«ãããã®ç¶ãã¨ãã¦ãä»æ¥ã¯æåã³ã¼ãã®èªåå¤å¥ã®è¨å®ãç´¹ä»ãã¾ãã æè¿ã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã§ã¯ãããã©ã«ãã®ãã±ã¼ã«ã UTF-8 ã«ãªã£ã¦ããã®ã§ãCJKãã©ã³ã(China, Japan, Koreaâ¦â¦è¦ã¯ã¢ã¸ã¢ç³»æåã®ãã©ã³ã)ããå ¥ã£ã¦ããã°ããã¡ãã¡ãã±ã¼ã«ãåãæ¿ããªãã¦ããæ¥æ¬èªã§ãéå½èªã§ã表示ã§ãã¦ãã¾ãã¾ãããªã®ã§ãã³ãã³ãã®åºåãªã©ã§ã¯ãç¹ã«æèããªãã¨ããæååããããã¨ã¯æ®ã©ããã¾ããã vimãæ¨æºã§æåã³ã¼ãã®èªåå¤å¥ãå¤æã«å¯¾å¿ãã¦ãã¾ãã®ã§ãã©ã®ãããªæåã³ã¼ãã§æ¸ããããã¡ã¤ã«ã§ããã¡ãã¨èªã¿æ¸ãã§ããã®ã§ãããèªåå¤å¥ãä¸æãå¹ãããããã«ã¯ãå¤å°è¨å®ãã¦ããå¿ è¦ãããã¾ãã .vimrc ã®è¨å® ç§ã使ã£ã¦ããèªåå¤å¥ã®è¨å®ã¯ä»¥ä¸ã®éãã§ãã~/.vimrc ãã¡ã¤ã«ã®æ«å°¾ã«è¿½å ãã¦ã¿ã¦ãã ããã :
Windows çã® gvim ã¯ããã®ã¾ã¾ã 㨠iso-2022-jp ã§ãã¡ã¤ã«ãä¿åã§ããªãã£ãã set encoding=utf-8 ããã¨ã¡ãã»ã¼ã¸ãæååããããã¨ã¨ã³ã³ã¼ãã£ã³ã°ã®æ±ãã«é£ãããã®ã§ãããã¤ãã©ã¤ãã©ãªã追å ããã¨ããã ã¾ãä¸ã¤ç®ã¯ iconv.dllãWindows ç¨ libiconv ã®ãã¤ããªã¯è²è²ãªã¨ãããé å¸ãã¦ããããé¦ãå±ããã®ã¨ããã® Libiconv DLL 1.10-20060516 for Windows ãæ¯è¼çæ°ããããã¦ã³ãã¼ãããã¨æ¸åº«ãã¡ã¤ã«ã®ä¸ã«è²è²å ¥ã£ã¦ããããå¿ è¦ãªã®ã¯ iconv.dll ã ãããã®ãã¡ã¤ã«ã gvim.exe ã¨åããã©ã«ãã«å ¥ãããé å¸å ã«ãã£ã¦ã¯ååã libiconv.dll ã ã£ãã libiconv2.dll ã ã£ããããããiconv.dll ã«ç´ããªãã¨æ¬¡ã« intl.dll ãå ¥ã
ã¨ã³ã³ã¼ãã£ã³ã°ãutf-8 ã®ã¨ãã®ããã©ã«ã(fileencodingsãæå®ãã¦ããªãå ´å)ã§ã¯ï½¤ä»¥ä¸ã®é ã§ã¨ã³ã³ã¼ãã£ã³ã°ã®ãã§ãã¯ãè¡ãã¾ã。 ucs-bom,utf-8,latin1 å é ã®ã¨ã³ã³ã¼ãã£ã³ã°ãããã§ãã¯ãè¡ã、該å½ãããã®ã、fileencodingã«è¨å®ããã¾ã。ãã ã、ucs-bomã®å ´åã¯ï½¤å®éã®ã¨ã³ã³ã¼ãã£ã³ã°ã®å 容ã«ãªãã¾ã。Windowsã®ã¬ã¸ã¹ããªãã¡ã¤ã«ãéãã¨ï½¤ucs-2le ã«ãªãã¾ã。(Unicodeã§ï½¤2ãã¤ã、ãªãã«ã¨ã³ãã£ã¢ã³ãæå³ãã¾ã) ãã®ã¾ã¾ã ã¨ï½¤ucs-bomã¨utf-8ã«è©²å½ããªãå ´åã¯ï½¤latin1ã«ãªãã¾ãã®ã§ï½¤éãå¯è½æ§ãããã¨ã³ã³ã¼ãã£ã³ã°åããã以åã«è¿½å ãã¾ã。 set encoding=utf-8 set fileencodings=ucs-bom,utf-8,iso-2022-jp,euc-jp,cp932
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}