æ¹è¡ã³ã¼ãä¸ä¸è´ã®ãã©ãã« ãã¼ã ã§éçºããæãæ¹è¡ã³ã¼ããçµ±ä¸ããªãã¨ãä¸æ³¨æã«ãã©ãã«ãçºçããæããããã¾ãã ã¹ã¯ãªããå®æ½ä¸å¯ Linuxã®ã·ã§ã«ã®æ¹è¡ã³ã¼ããLFã§ã¯ãªãã¨ãå®è¡ã§ãã¾ããã éã«Windowsã®ã³ãã³ãã¹ã¯ãªããã®æ¹è¡ã³ã¼ããCRLFã§ã¯ãªãã¨ãå®è¡åºã¾ããã å·®åæ¯è¼ä¸å¯ ã½ã¼ã¹ãä¿®æ£ãã¦ãªãã®ã«ãæ¹è¡ãéãå ´åãè¡ã®å·®åã¯åºã¦ãã¾ãã å®éã®å¤æ´å 容ã¯è¦ã¥ãããªãã¾ãã ãã¼ã«ã«éçºæã®æ¹è¡ã³ã¼ãã®ãã©ã¯ãã£ã¹ Gitã¯ã©ã¤ã¢ã³ãã®ããã©ã«ãåãã®å¶å¾¡ ã°ãã¼ãã«ã®ã³ã³ãã£ã°(core.autocrlf)ãã³ã³ãã£ã°ãã è¨å® ãã§ãã¯ã¢ã¦ãæ ã³ãããæ
ããããã㨠æ¥æ¬èªã®æååã«ä»»æã®æååãå«ã¾ãããã©ããå¤å®ãããã äºéãã®ãããããæ¸ãã æ£è¦è¡¨ç¾ã§ãããããã use Encode qw/encode/; # source text my $str = 'ã¡ãã»ã¼ã¸âéä¿¡ã¨ã©ã¼âã表示ããã¾ãã'; my $p = 'éä¿¡ã¨ã©ã¼'; $p = encode('utf8', $p); $str = encode('utf8', $str); if ($str =~ m/$p/) { # ãããããã©ã¤ print "Found it!!!"; } indexé¢æ°ã使ã ãããã¯ãindexé¢æ°ã使ã£ã¦ä»»æã®æååãå«ã¾ãããã©ãããå¤å®ã§ããã ## index function if (index($str, $p) >=0) { print "Found it!!!\n"; } ã¡ã¿æåã«ãããããããã¨ãã¯ã\ã§ã¨ã¹ã±ã¼
using namespace System; using namespace System::Text; int main() { String^ unicodeString = "This string contains the unicode character Pi (\u03a0)"; // Create two different encodings. Encoding^ ascii = Encoding::ASCII; Encoding^ unicode = Encoding::Unicode; // Convert the string into a byte array. array<Byte>^unicodeBytes = unicode->GetBytes( unicodeString ); // Perform the conversion from one enc
åå空é: System.Text ã¢ã»ã³ããª:System.Text.Encoding.dll ã¢ã»ã³ããª:System.Runtime.dll ã¢ã»ã³ããª:mscorlib.dll ã¢ã»ã³ããª:netstandard.dll éè¦ ä¸é¨ã®æ å ±ã¯ããªãªã¼ã¹åã«å¤§ããå¤æ´ãããå¯è½æ§ããããã¬ãªãªã¼ã¹ããã製åã«é¢ãããã®ã§ãã Microsoft ã¯ãããã«è¨è¼ããã¦ããæ å ±ã«ã¤ãã¦ãæ示ã¾ãã¯é»ç¤ºãåãããä¸åä¿è¨¼ãã¾ããã
ãã®è¨äºã§ã¯ã.NET ã«ç¨æããã¦ããããã¾ãã¾ãªã¨ã³ã³ã¼ã ã¹ãã¼ã ã使ç¨ãã¦ããã¹ããã¨ã³ã³ã¼ãããã³ãã³ã¼ãããããã®ã¯ã©ã¹ã®ä½¿ç¨æ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã ãã®æé ã¯ã.NET ã§ã®æåã¨ã³ã³ã¼ãã®æ¦è¦ã«é¢ããè¨äºãæ¢ã«èªãã§ãããã¨ãåæã¨ãã¦ãã¾ãã ã¨ã³ã³ã¼ãã¼ã¨ãã³ã¼ãã¼ .NET ã«ã¯ããã¾ãã¾ãªã¨ã³ã³ã¼ã ã·ã¹ãã ã使ç¨ãã¦ããã¹ããã¨ã³ã³ã¼ãããã³ãã³ã¼ããããã¨ã³ã³ã¼ãã£ã³ã° ã¯ã©ã¹ãç¨æããã¦ãã¾ãã ãã¨ãã°ãUTF8Encoding ã¯ã©ã¹ã«ã¯ãUTF-8 ã¸ã®ã¨ã³ã³ã¼ã㨠UTF-8 ããã®ãã³ã¼ãã«é¢ããè¦åãè¨è¿°ããã¦ãã¾ãã .NET ã§ã¯ãstring ã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ã㦠UTF-16 ã¨ã³ã³ã¼ã (UnicodeEncoding ã¯ã©ã¹ã«ãã£ã¦è¡¨ããã¾ã) ã使ç¨ããã¾ãã ã¨ã³ã³ã¼ãã¼ã¨ãã³ã¼ãã¼ã¯ãä»ã®ã¨ã³ã³ã¼ã ã¹ãã¼ã ã§ã使ç¨ã§ãã¾ãã
PostgreSQLã¯ãªã¼ãã³ã½ã¼ã¹ã®ãªãã¸ã§ã¯ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ã§ãã Oracle Databaseã§ä½¿ãããPL/SQLãåèã«å®è£ ããããã«ãã¤ã³è¨èªã§ãWindowsã MacãLinuxãUNIXãMSãªã©ããã¤ãã®ãã©ãããã©ã¼ã ã«å¯¾å¿ãã¦ãã¾ãã SQL(Structured Query Language)ã¯ããªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã (RDBMS)ã®ãã¼ã¿ãã¼ã¹è¨èªã§ãã大ããåãã¦ããã¼ã¿å®ç¾©è¨èª(DDL)ããã¼ã¿æä½è¨èª(DML)ããã¼ã¿å¶å¾¡è¨èª(DCL)ã®3ã¤ã§æ§æããã¦ãããããã°ã©ã ä¸ã§SQLæãçæãã¦ãRDBMSã«å½ä»¤ãåºããRDBã«å¿ è¦ãªãã¼ã¿ãæ ¼ç´ã§ãã¾ããã¾ããæ ¼ç´ãããã¼ã¿ãå¼ãåºããã¨ãå¯è½ã§ãã
æ¥æ¬èªãå«ã¾ãããã©ã¡ã¼ã¿ãå¦çããæ¹æ³ã¨ãã¦ãsetCharacterEncodingãã¡ã½ããã使ãæ¹æ³ã確èªãã¾ãããHttpServletRequestãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®è¦ªã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ãServletRequestãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§å®ç¾©ããã¦ãã¾ãã ãã¨ãã¨æååãããåå ãããã©ã¡ã¼ã¿ã¨ãã¦éããã¦ãããã¤ãåããæååã«å¤æããæã«ãæåã³ã¼ãã¨ãã¦ãISO-8859-1(Latin1)ãã使ã£ã¦ãã¾ãã®ãåé¡ã§ãããããã§æ£ããæåã³ã¼ãããµã¼ãã¬ããã«äºåã«è¨å®ãåºæ¥ãã°æååãã¯çºçãã¾ããããsetCharacterEncodingãã¡ã½ããã¯ãªã¯ã¨ã¹ãããã£ã«å«ã¾ãããã¼ã¿ã®æåã³ã¼ããæå®ããå¤ã«æ¸ãæããã¡ã½ããã§ãã setCharacterEncoding public void setCharacterEncoding(java.lang.Str
BLOG / 2017.02.10 InDesignã®ãã¼ã¿çµåç¨ã®ãã¼ã¿ã½ã¼ã¹ãé¸æããéã«æ¯åº¦ã¨ã©ã¼ãåºãã¦ãã¾ãã®ã§åå¿é²ãã¾ã¨ãããã¨ããéã«ãã©ãã«ãããªã¥ã¼ãã¼ã«ãªã£ãã®ã§å¥ã«ã ã¨ããããæå ã§èª¿ã¹ãããExcelã®ç¯å²å ã§ã æåã³ã¼ãã®å¤å¥ã¯ãSublime Text 3ã®æåã³ã¼ãã®è¡¨ç¤ºã¨ãMac ã¿ã¼ããã«ã®nkfã³ãã³ããã¤ã³ã¹ãã¼ã«ãã¦è¦ã¦ããã®ã§ãæ£ãã表è¨ãªã®ãã¯ã½ããé ¼ããªã®ã§æ°ã«ãªãæ¹ã¯ãèªèº«ã§è¦ã¦ä¸ããã ç°å¢ï¼Windows Excel 2016 ä¿åå½¢å¼ æåã³ã¼ã
ã¨ã¯ã»ã«ã§æååãããCSVã®ä¿®æ£æ¹æ³Webã·ã¹ãã ããCSVããã¦ã³ãã¼ããã¦ãã½ã³ã³ã®ã¨ã¯ã»ã«ããã®ä»ã®ã¢ããªã±ã¼ã·ã§ã³ã§éããããPCã§ä½ã£ãCSVãWebã·ã¹ãã ã«ã¤ã³ãã¼ãããã¨æååãããå ´åã«ãæååããåé¿ããæ¹æ³ããç´¹ä»ãã¾ãã Webã·ã¹ãã ããCSVããã¦ã³ãã¼ããã¦ãã½ã³ã³ã®ã¨ã¯ã»ã«ã§éãããªã©ã¯æ¥åä¸ããè¡ãä½æ¥ã ã¨æãã¾ããã¾ããã¨ã¯ã»ã«ã§æ´ããCSVãã¡ã¤ã«ãWebã·ã¹ãã ã«ã¤ã³ãã¼ãããå ´åãããã¾ããããã®ãããªå ´åã«æ¥æ¬èªæåãæååããã¦ãã¾ãã®ãåé¿ããæ¹æ³ããç´¹ä»ãã¾ãã è±èªãã¼ã¹ã®ãµã¤ãã§ã大ããªWebãµã¼ãã¹ã ã¨æ¥æ¬èªå¯¾å¿ãããäºãå¤ãã§ããããã¤ãã¼ãªãµã¼ãã¹ã使ã£ã¦ãããããªå ´åã«ã¤ã³ãã¼ãã»ã¨ã¯ã¹ãã¼ãæã®æ¥æ¬èªæååããåé¿ãããã¨ãã§ãã¾ããã¾ãããèªèº«ã§Webãµã¼ãã¹ãéå¶ããå ´åã«æååãããã«CSVãæ±ãæ¹æ³ããç´¹ä»ãã¾ãã
ç°å¢ã¥ãã utf8ãã©ã°ã openãã©ã°ã binmodeé¢æ° æ¨æºå ¥åºåãopenãã©ã°ãã«ã¾ã¨ãã ã¾ã¨ã ä»é² Perlã§æ¥æ¬èªã®ããã¹ããå¦çãã¦ããã¨ãã£ãããªå²åã§æååãã«ãããã è¿ããã¨ã«ã¤ãã¦ã¯ä»¥åããã§ã¿ã£ã¡ãæ¸ãããã note103.hateblo.jp ã©ãããã®å¾ãèªåã¯binmodeé¢æ°ãopené¢æ°ãããã³utf8ãopenãã©ã°ãã«ã¤ãã¦ç解ãæªãããªãã¨æã£ãã®ã§ãããã調ã¹ã¤ã¤ç¾æç¹ã§ã®èªèãã¾ã¨ãã¦ã¿ãã ç°å¢ã¥ãã ã¾ãã¯ãµã³ãã«ã±ã¼ã¹çã«ãæååãããã¡ãªç¶æ³ãä½ãã ç´ æãã¼ã¿ã¨ãã¦ã以ä¸ã®å 容ãã¨ã³ã³ã¼ãã£ã³ã°UTF-8ã®ããã¹ããã¡ã¤ã«ã«source.txtã¨ããååã§ä¿åã ããã hello ç¬ 1234 ã㳠次ã«ããã®ãã¼ã¿ãopené¢æ°ã§èªã¿è¾¼ã¿ãsplité¢æ°ã§åãå»ãã§æ¨æºåºåããã³æ¸ãè¾¼ã¿ç¨ãã¡ã¤ã«result.txt
gitã§æ¥æ¬èªãã¡ã¤ã«ãæååããã ããã°ãã¯ãå°å®¤ã§ããgitã使ã£ã¦ãã¦æ¥æ¬èªã®ãã¡ã¤ã«åãå ¥ããã¨ãã¡ã¤ã«åã®è¡¨ç¤ºãå´©å£ããã¨ããçµé¨ããã¾ããã å²ã¨ä»ã¾ã§ã¯æ¾ç½®ãã¦ããã®ã§ããããã¡ãã¨æ¥æ¬èªãã¡ã¤ã«åã表示ããã³ãã³ããæãã¦ããã£ããããåå¿é²ã¨ãã¦è¨é²ãã¦ããã¾ãã è¥å¹²äººãå°é¦¬é¹¿ã«ãããããªãã¡ã¤ã«åã®ãã¡ã¤ã«ãé ç½®ãããã£ã¬ã¯ããªããµã³ãã«ã¨ãã¦ç¨æãã¾ããã $ ls -la total 8 drwxr-xr-x 4 komurohiraku staff 136 Mar 25 19:09 . drwxr-xr-x 22 komurohiraku staff 748 Mar 25 19:08 .. drwxr-xr-x 10 komurohiraku staff 340 Mar 25 19:08 .git -rw-r--r-- 1 komurohiraku staff
å°ããªãã¤ããªãåã渡ããããããã©ãã¡ã¤ã«å ±æãµã¼ãã¹ã¨ã使ãã®ãé¢åã ãbase64 ã«ãã¦gist ã«è²¼ã£ã¦ãã¾ããã¨æã£ãã®ã§ããï¼nkf ã³ãã³ãã§base64 ã«ã¨ã³ã³ã¼ããã¦ï¼ç¢ºèªã®ãããã³ã¼ããã¦ã¿ããéãçµæã«ï¼ % cat original | nkf -MB > hoge % cat hoge | nkf -mB > fuga % diff original fuga ãã¤ããªã¼ãã¡ã¤ã« original ã¨fuga ã¯ç°ãªãã¾ã % ls -l -rw-r--r-- 1 mk mk 4080 5æ 29 20:38 original -rw-r--r-- 1 mk mk 5422 5æ 29 20:52 hoge -rw-r--r-- 1 mk mk 3999 5æ 29 20:52 fuga Google+ ã«ãã®ãã¨ãæ¸ããã https://plus.goog
åé¡ èªåã®ç°å¢ï¼UTF-8 SSHæ¥ç¶å ï¼EUC-JP ã¨ãããããã¾ããã $ export LANG=eucJP ã¨ã $ export LANG=ja_JP.UTF-8 ãã¦ããã¦ããããã§ãããããããããã®ãé¢åã§ãããããã°ã¤ã³å ã¨ãã£ã¡ã®ã©ã£ã¡ã§è¨å®ããã¨ãããã ï¼ãã¿ããã«æ©ã¿ã¾ãã è§£æ±ºæ³ cocotã¨ãããã¼ã«ã使ãã¾ãã $ brew install cocot ã§ã¤ã³ã¹ãã¼ã«çµãããå¾ã¯ $ cocot -t UTF-8 -p EUC-JP ssh [email protected] ã¨ããã¨ãæå ã®UTF-8ç°å¢ã«åããã¦åããå´ã®EUC-JPãã³ã³ãã¼ããã¦ããã¾ãã åè Ubuntuæ¥æ¬èªãã©ã¼ã©ã / GNOMEã®æåã³ã¼ãã常ã«EUC-JPã«ããæ¹æ³
ã¢ã«ãã¡ãããããã¹ã¦é¸æãã¦åè§ã«çµ±ä¸ããææ¸ä¸ã®ã¢ã«ãã¡ãããããã¹ã¦å ¨è§ãåè§ã«çµ±ä¸ãããã¨æã£ããã¨ã¯ããã¾ãããããã®ããã«ã¯ãææ¸ä¸ã®ãã¹ã¦ã®ã¢ã«ãã¡ãããï¼å ¨è§ã»åè§ï¼ãé¸æãããã¨ã§ãå ¨è§ãåè§ã«ç½®ãæããã¨ç°¡åã§ããä»åã¯ããã®å ·ä½çãªæä½ãç´¹ä»ãã¾ãã ã¢ã«ãã¡ãããã ããé¸æã§ããã便å©ãªã®ã«â¦â¦ ææ¸ä¸ã«ãWindowsãããOfficeãã¨ãã£ãã¢ã«ãã¡ããããå ¥åããã¨ããçããã¯å ¨è§ã§å ¥åãã¦ãã¾ããï¼ ãããã¯åè§ã§ããããï¼ ç§ã¯åè§ã§çµ±ä¸ãã¦ãã¾ããçç±ã¯ãä»äºã§æ¸ãå稿ã§ã¯åè§ã®ã¢ã«ãã¡ããããè¦æ±ãããããã§ããWebãµã¤ããéèªã»æ¸ç±ãªã©ã§ã¯ãåè§ã¢ã«ãã¡ãããã®æ¹ããããã«è¦ãããããå稿ãåè§ã®ã¢ã«ãã¡ããããªã®ã§ãã ãã®ãããä»äºã§ã¯ãªãæç« ãæ¸ãã¨ãããã¨ãã°ç§ç¨ã®ã¡ã¼ã«ãæ¸ãããããã°ãæ¸ãããããã¨ããã¢ã«ãã¡ãããã¯åè§ã§çµ±ä¸ããç
Welcome to the Unicode Security Guide! This guide has been designed to give Web application developers, software engineers, and application security researchers a reference for understanding Unicode-related security issues in operating systems, applications, and the Web. The dynamics of Unicode, and character encodings in general, are often misunderstood or poorly implemented, and lead to an array
Ruby 1.9 ããæååãæ£è¦è¡¨ç¾ãªãã¸ã§ã¯ãã¯ããããã¨ã³ã³ã¼ãã£ã³ã°(ããããæåã³ã¼ã)ãä¿æããããã«ãªãã¾ããã ãã¨ãã° 0xB1 0xB2 ã¨ããï¼ãã¤ã㯠EUC-JP ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¯ã渦ããSHIFT_JIS ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¯ãアイãã¨ããæåã«ãªãã¾ããã¤ã¾ãåããã¤ãåã§ãã¨ã³ã³ã¼ãã£ã³ã°ãç°ãªãã°ç°ãªãæåã¨ãã¦è§£éããã¾ãã 1.8 ã§ã¯æååã¯ãã ã®ãã¤ãåã§ããããªã®ã§ããããã©ã®ãããªæåã表ãã¦ããã®ããã¤ã¾ãã¨ã³ã³ã¼ãã£ã³ã°ãä½ãªã®ãã¯ããã°ã©ã ãç¥ã£ã¦ããå¿ è¦ãããã¾ããã 1.9 ã§ã¯æååãªãã¸ã§ã¯ãèªèº«ãèªåãä½ã®ã¨ã³ã³ã¼ãã£ã³ã°ããç¥ã£ã¦ãã¾ããåã 0xB1 0xB2 ã¨ãããã¤ãåã§ããããã EUC-JP ã®ã渦ããªã®ã SHIFT_JIS ã®ãアイããªã®ãã¯ãæååèªèº«ãç¥ã£ã¦ãã¾ãã ã¹ã¯ãªããã¨ã³ã³ã¼ãã£ã³ã° ã¹ã¯ãªã
1. <Insert Picture Here> MySQL æ¥æ¬èªå©ç¨å¾¹åºå ¥é æ¥æ¬ãªã©ã¯ã«æ ªå¼ä¼ç¤¾ MySQL Global Business Unit ãã¯ãã«ã«ã¢ããªã¹ã 奥éå¹¹ä¹ 2012 å¹´ 5 æ 29 æ¥ Copyright© 2012, Oracle. All rights reserved. 2. 2 以ä¸ã®äºé ã¯ãå¼ç¤¾ã®ä¸è¬çãªè£½åã®æ¹åæ§ã«é¢ããæ¦è¦ã説æãããã®ã§ããã¾ ããæ å ±æä¾ãå¯ä¸ã®ç®çã¨ãããã®ã§ããããããªãå¥ç´ã«ãçµã¿è¾¼ããã¨ã¯ã§ã ã¾ããã以ä¸ã®äºé ã¯ããããªã¢ã«ãã³ã¼ããæ©è½ãæä¾ãããã¨ãã³ãããã¡ã³ãï¼ç¢º ç´ï¼ãããã®ã§ã¯ãªãããã購買決å®ãè¡ãéã®å¤æææã«ãªãããªãã§ä¸ããã㪠ã©ã¯ã«è£½åã«é¢ãã¦è¨è¼ããã¦ããæ©è½ã®éçºããªãªã¼ã¹ããã³ææã«ã¤ãã¦ã¯ãå¼ ç¤¾ã®è£éã«ãã決å®ããã¾ãã Oracle 㨠Java ã¯ã Oracle Cor
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}