You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
èµ·æº åè¨å·åé¡ã®å§ã¾ãã¯1960年代ã«ã¾ã§é¡ãã¾ãã1967 å¹´ã«æåã³ã¼ãæåã®å½éè¦æ ¼ã§ãã ISO R 646 ãå¶å®ããã¾ãããããã®è¦æ ¼ã§ã¯ 0x5C ãã¯ããã¨ãã¦ä¸é¨ã®æåãç½®ãæãå¯è½ã«ãªã£ã¦ãã¾ãããã¢ã¡ãªã«ã®å¶å®ãã ASCII ã§ã¯ 0x5C ã«å¯¾ã㦠REVERSE SOLIDUS ãå²ãå½ã¦ã¾ãããä¸æ¹ãæ¥æ¬çã§ãã JIS X 0201 ã§ã¯ YEN SIGN ãå²ãå½ã¦ã¾ããã åé¡ã®æ¡å¤§ 7bit ã§ã¯æ±ããããªãæåãæ±ããããä¸ç㧠ISO 646 ç³»ã®ã³ã¼ããæ¡å¼µããæåã³ã¼ããçã¾ãã¾ãããæ¥æ¬ã§ã¯ã·ããJISãæ¥æ¬èª EUCããããã JIS ã³ã¼ãã®ä¸ç¨®é¡ã®æåã³ã¼ããç¾ããããããã«å¤ãã®äºç¨®ãçã¾ãã¾ãããã§ã¯ãããããã®æåã³ã¼ãã® 7bit é å㯠ASCII 㨠JIS X 0201 ã®ã©ã¡ãã ã£ãã®ã§ããããã æ¥æ¬èª EUC æ¥æ¬
ã¦ãã³ã¼ãæ£è¦åãããã¨ãåè§è±æ°åãæ©ç¨®ä¾åæåãªã©ã®è¡¨è¨ãçµ±ä¸ã§ãã¾ãã 表è¨ãã¬ãå¸åããããã¨ã§æ¤ç´¢æ§ãé«ã¾ã£ããããã¼ã¿ã®æ¯è¼ãªã©ãè¡ãããããªãã¾ãã æ£è¦åã®ææ³ã«ã¯NFD, NFC, NFKD, NFKCãããã¾ããããã®ä¸ã§ãNFKCã¨ãã次ã®ãããªæ£è¦åãè¡ãæ¹æ³ãã³ã¼ãã交ãã¦ç´¹ä»ãã¾ãã ã¦ã㧠â ã´ã§ ABC â ABC â â 1 㤠â ä¸ â ¢ â III 㶠â ãã¯ã¿ã¼ã« ï¾ï¾ï½¶ï½¸ï½¶ï¾ â ãã³ã«ã¯ã«ã ï¹£ â - ⻠左辺ã¯U+FE63 Small Hyphen-Minus: å°ãããã¤ãã³ãã¤ãã¹ ï¼ â - ⻠左辺ã¯U+FF0D Fullwidth Hyphen-Minus: å ¨è§ãã¤ãã³ãã¤ãã¹ åä½ç°å¢
ã¯ããã« ãã£ã¨ãã¾ãã¾ãä¼ãã¾ããããæåã³ã¼ãããããã§ããååãUnicodeã«ãããçµåæååã¨ãã話é¡ãåãä¸ãã¾ãããæãããããããçµåæååã¯å¼·æµã§ããããã¨å£èµ°ãããã«ãªã代ç©ã§ããããä»åã¯ããã«é¢é£ããUnicodeæ£è¦åã®ã話ããã¦ã¿ããã¨æãã¾ãã ãã£ã¨ååã®ãããã 詳ãããã¨ã¯ååã®è¨äºãã覧ããã ãã¨ãã¦ã æä½éã®ç¨èªã«ã¤ãã¦ãã£ãããããããã¦ããã¾ããã çµåæåå è¤æ°ã®æåã使ã£ã¦è¦ããä¸ã®1æåã表ç¾ããä»çµã¿ ãã¦ï¼U+3066ï¼ã ã®å¾ã«ã ãæ¿ç¹ï¼U+3099ï¼ã ãé ç½®ãããã¨ã«ãã£ã¦ ãã§ã ã表ç¾ãã åææ¸ã¿æå ãã§ï¼U+3067ï¼ããªã©ã®ãããããåæããã¦ããæå Unicodeæ£è¦å çµåæååãåææ¸ã¿ã«çµ±ä¸ããããåææ¸ã¿æåãçµåæååã«ãããããå¦ç å°ã èªå¼ãããã¾ãããã¤ã¡ã¼ã¸ãã¤ãããã°OKã§ãã æ£è¦åã®4
C++æ¨æºåå§å¡ä¼ãã¤ãã«æåã¨ã¯ä½ããç解ãã: char8_tã¨ããè¨äºã話é¡ã ã£ã¦ã®ã§ãã¤ãã¤ãã¨æ¸ãã¦ã¿ã¾ããã ãã°ãªããã«ã¤ã㦠ã°ãªãï¼glyphï¼ã¨ããè¨èã®å®ç¾©ãããã£ã¦ ã§ã触ãããã¦ãã¾ããããã°ãªããã¨ããè¨èããåä½ããæãã®ããåå½¢ããæãã®ãã£ã¦ã®ã¯è°è«ãããã¾ãããæåã³ã¼ãã®æèã§ã¯æ®éãåå½¢ãã®æå³ã ã¨ãã¦è©±ãé²ãããã¨ãå¤ãããã«æãã¾ãã CJKçµ±åæ¼¢åã«ã¤ã㦠Wikipediaã®è¨äºã«ã¾ã¨ã¾ã£ã¦ãã¾ãããå®éã«æ¨é²ãã¦ããã®ã¯ä¸å½ã¿ããã§ããããã¾ãããã°ããã¾ãåé¡ãªãã£ããã§ãããããããã¾ããã¾ãè¡ããªãã£ããã§ãããããã§ãå½ãã¨ã«ãã®å½ã®éå»ã«ãã£ãæåã³ã¼ãã¨ã®äºææ§ã¯åãã¦ããã®ã§ãå®éã®æCJKçµ±åæ¼¢åã£ã¦ããã¾ãåé¡ã«ã¯ãªã£ã¦ãªãã¨æããã§ããããä¸å½èªãã©ã³ãã¨æ¥æ¬èªãã©ã³ããåãæ¿ããªãã¨ãããªãã£ã¦åé¡ã¯ããã¾ããã©ããã
mysql> use utf8mb4_sample_development; mysql> show variables like "chara%"; +--------------------------+------------------------------------------------------+ | Variable_name | Value | +--------------------------+------------------------------------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8mb4 | | character_set_filesyste
Unicodeã®UTF-16ã¨ã³ã³ã¼ãã£ã³ã°ã§ã¯ã»ã¨ãã©ã®æåï¼ã³ã¼ããã¤ã³ãï¼ã¯2ãã¤ãã§è¡¨ç¾ãããããUnicodeã«å¾ãã追å åé²ãããæåã®å¤ãã¯4ãã¤ãã§è¡¨ç¾ãããã4ãã¤ãæåããã¾ãæ±ããªãããã°ã©ã ã¨ããã®ã¯ããã¨ããããããããä¸çä¸ã§åºã使ãããããã«ãªã£ãçµµæåãããã«ãã£ã¦4ãã¤ãæåã§ããããã§ããã®ãããªæåãæ±ããªãåé¡ããããã¼ã¹ã§è§£æ±ºã«åããã¤ã¤ãããããã«ã¤ãã¦å°ã説æãã¦ã¿ããã¨æãã Unicodeã80年代ãã90年代åé ã«ããã¦ãã¶ã¤ã³ãããã¨ãã®ç®æ¨ã®ä¸ã¤ã¯ãUnicodeã«å«ã¾ããæåæ°ã65536å以å ã«åãããã¨ã ã£ããç¾ä»£ã®æç« ãå®ç¨çãªã¬ãã«ã§è¡¨ãããã«ã¯ãæ¼¢åãªã©ãå«ãã¦ãããã ãã®ç¨®é¡ã®æåãããã°ååã ã¨èããããã®ã ãå½ç¶ããã¯1æåã2ãã¤ãã§è¡¨ããã¨ã念é ã«ç½®ãã¦ãããã¤ã¾ãã³ã³ãã¥ã¼ã¿ã®æºç±æããå½æã«è³ãã¾ã§åç´ã«è±èª
ãããªè¨äºãããã¾ããã gihyo.jp ããã¯Macã¦ã¼ã¶ã¼ç¨ã®æ¸ç±ã®å®£ä¼è¨äºãããã®ã§ããããWindowsã使ã£ã¦ã人ã®ããã«Macå´ãã²ã¨æéããã¦ããããããªãã¦æ®åãªãã¨ããã«ã¼ãè¨ãã¨ã¯æ代ãå¤ãã£ãããã§ããï¼[追è¨] ã¯ã¦ãã®ã³ã¡ã³ããè¦ããããããã«ã¼ã¨ããæè¦ã並ãã§ã¦å®å¿ãã¾ããï¼ ã¾ãç§ã¯Windowsã¦ã¼ã¶ã¼ã§ãMacã¦ã¼ã¶ã¼ã§ããªãã®ã§ã©ãã§ãããã®ã§ãããæååããªãã¿ãªã®ã§é£ãã¤ãã¦ã¿ã¾ãã è¨äºä¸ã«ããä»ç©åºç¨¿.zipãã¨ãããã¡ã¤ã«ãéããæã®ç»åãè¼ã£ã¦ã¾ãã æåã®ä¸¦ã³ãããã¦ãUTF-8æååãã·ããJIS(CP932)ã¨ã¿ãªãã¦è¡¨ç¤ºãã¦ãã¾ã£ãæååã§ãããï¼ã繧ォç¹ä¸ï½ç¹ï½¼ç¹è¼ãç¹ï½«ç¹§ï½¿ç¹§ï½¥ãã®å ã®æåã¯ãã«ããã¼ãã©ã«ã¿ããã§ããè¶ï½¯ç¹è¼ãç¹ï½«ç¹§ï½¿ç¹§ï½¥ãã¯ã帯ãã©ã«ã¿ããï¼ã ã¤ã¾ããMacã¯ãã¡ã¤ã«åãUTF-8ã§ZIPã«æ¸ãè¾¼ã¿ãWi
åè§ã¹ãã¼ã¹ã ãã¨ã¿ãã ãã¨U+3000 ã®å ¨è§ã¹ãã¼ã¹ãããã ãã§ããã¨æã£ã¦ããã©ãwikipediaã® http://ja.wikipedia.org/wiki/ã¹ãã¼ã¹ ãè¦ããããã ãã§ã¯ãªãæ§åã | U-Point | UTF-8 (in literal) | Name| |:---|--:|:--| --:| |U+0009 | \x09 | CHARACTER TABULATION | |U+0020 | \x20 | SPACE | |U+00A0 | \xc2\xa0 | NO-BREAK SPACE | |U+2002 | \xe2\x80\x82 | EN SPACE | |U+2003 | \xe2\x80\x83 | EM SPACE | |U+2004 | \xe2\x80\x84 | THREE-PER-EM SPACE | |U+2005 | \xe
ãã¼ãæ°åã®â ,â ¡,â ¢... ã®ä»ã«å²ã¿æå â ,â¡,â¢... ãããããç°ãªããã¤ãåã«ãªãã¾ãã MacJapanese ã使ããã¦ããã¢ããªã±ã¼ã·ã§ã³ ã»ã¨ãã©è¦ãããªãã®ã§ãããçµ¶æ» ãã¦ããããã§ã¯ããã¾ãããMicrosoft Excel ã®ãã¡ã¤ã« *.xls ã¾ã㯠*.xlsx ã Mac ç Office 㧠CSV åºåãã㨠MacJapanese ã«ãªãã¾ããWindows ç Office ã§åãæä½ããã㨠CP932 ã® CSV ãã¡ã¤ã«ãåºåããã¾ããé常ã«ãããããã§ãããã¾ããMac æ¨æºã®ã¡ã¼ã©ã¼ã MacJapanese ã使ã£ã¦ããããã§ãã Ruby ã§ã®åãæ±ã Ruby 㧠Shift_JIS, CP932, MacJapanese ã®ãã¡ã¤ã«ãèªã¿è¾¼ããã¨ãèãã¾ããShift_JIS ã CP932 ã§ããã°ãFile.read("hog
ãã㯠NSEG Advent Calender ã®7æ¥ç®ã®è¨äºã§ã(å 容㯠NSEG ã¨ãé·éã¨ãé¢ä¿ããã¾ãããâ¦)ã www.adventar.org ã¡ã¼ã«ã®éä¿¡è (From)ã件å(Subject)ã¯æ¬æ¥ASCII(ã®ä¸é¨ã®æå)ããæ¸ããã¨ãã§ããªããã§ãããMIME(RFC2047)ã®ç»å ´ã«ãã£ã¦æ¥æ¬èªçã®éASCIIæåãè¨è¿°ãããã¨ãã§ããããã«ãªãã¾ããã ã¨ã¯è¨ã£ã¦ãã¡ã¼ã«ã¢ããªããè¦ã¦æ¥æ¬èªã表示ã§ãã¦ããã ãã§ãå é¨çã«ã¯ASCIIæåã«ã¨ã³ã³ã¼ãããã¦ãã¾ããMIMEãããã¨ã³ã³ã¼ãã£ã³ã°ã¨å¼ã°ãã¦ãã¾ãã ãã¨ãã°ããæ¥æ¬èªãã¨ããæåå㯠=?utf-8?b?5pel5pys6Kqe?= ã =?iso-2022-jp?b?GyRCRnxLXDhsGyhC?= ã«å¤æããã¦ãã¾ãã ãã®å¦çãå®ã¯é常ã«è¤éã§ãæ£ããã¨ã³ã³ã¼ãããã¦ãªãå ´åãããªãããã¾ãã
以åNodeã§ä½ã£ã¦ãããã®ãElectronã§ä½ãç´ãã¦ãã¦ãåãåé¡ã«ã¾ãããã£ãã®ã§æ¸ãã¦ããã æè¬ãUTF-8-MACåé¡ã§ãããããé¥ãæã«Nodeã§ããã£ãæã®è¨äºãããã node.jsã§UTF-8-MACãæ±ã - joker1007ã®æ¥è¨ Macã®ãã¡ã¤ã«ã·ã¹ãã ã¯ãã¡ã¤ã«åã«å¯¾ãã¦NFDã¨ãããæ£è¦åãè¡ã£ã¦ãã¦ããã¡ã¤ã«ã·ã¹ãã ã«ã¢ã¯ã»ã¹ããæã«åæã«å¤æããããä»çµã¿ã«ãªã£ã¦ããã ãã®ããã§ãæ¿ç¹ãå ¥ãã¨æ¥ã«æ»ã¬ã¨ããæ¬å½è¾ãåé¡ãèµ·ãããä½ã®å«ããããªãã ã¨â¦â¦ããã®ä¸çã¯æåã8ãããã§æ¸ãæ§ãªå½ã°ã£ããããããã ãï¼ ã¨ããããMac NFDã§ã°ã°ãã¨è¾ãã®ã¯ä¿ºã ããããªãæ°æã¡ã«ãªããã ã§ãæã¯ä¸ã§è²¼ã£ãããã°ã«æ¸ãããããªæ¹æ³ã§è§£æ±ºãã¦ããã®ã ããæ£ç´ããã®è§£æ±ºçã¯2015å¹´ã«ããªã£ã¦é¢åéããã ãã¨æã£ã¦ããã (ãã¸ããã¼ã£ã¦ã°ã°ã£ã¦èªåã®è¨äºã
åº ãæååãæåã®åã¨ã¿ãªãåç´åãã«ã¤ãã¦è°è«ãããã¾ãããåæãæãè½ã¡ã¦ãããã«æãã®ã§æ¸ããã¨ã«ãã¾ãã ãããããã®è©±ã¯ã©ã®ãããªæèã®ä¸ã«ãããã¨ããã¨ãããã¹ãå¦ç (wikipedia:en:Text_processing) ã®æèã«ãªãã¾ããããã§ãããããã¹ãå¦çãã¨ã¯ plain text (wikipedia:ãã¬ã¼ã³ããã¹ã) ã®æ¤ç´¢ã»å å·¥ã®ãã¨ã§ãããã§ã¯ç¹ã« UNIX Text Processing ã®ç³»èã念é ã«ç½®ããã¦ãã¾ããã¤ã¾ããè¤éãªè£ 飾ãå«ããªããããã¹ãã§ã¯ãªããå¦çã®å¯¾è±¡ã ASCII æååã¨ããã¤ãã®å¶å¾¡æåã¸ã¨æ½è±¡åãããã¨ã§ãæ£è¦è¡¨ç¾ã®ãããªå¼·åãªéå ·ãç¨ããå¦çãå¯è½ã¨ããä¸çã§ããUNIX ã§ã®ã話ã§ããããããã§ã®å ·ä½çãªå¦çã®åä½ã¯ char ã§ãããå ¨ä½ã¨ãã¦ã¯ char[] ã«ãªãã¾ãããã® char ã®ä¸èº«ã¯ä¸ã§è¿°ã¹ãã¨
å æ¥ @shyouhei ããã®Tweetã«åå¿ãã¦æååãæåã®åãã©ãããè¨èªã«ãã£ã¦ç°ãªãã¨ãã話ãTweetãã¾ããã shyouheiããã®æ稿: Pythonã¯ã©ããããããRubyã®è¨è¨ææ³ã¯ãä¸ã®ä¸ã¯ã·ã³ãã«ãããªããã ãããªãæååãæåã®åã¨ã¿ãªãçºæ³ãã®ç©ããã§ã«Rubyããããã¨é度ã«ä¸çãåç´åãããã¦ããã https://twitter.com/shyouhei/status/528106973565165568 ããã¡ãã£ã¨è¨ã£ã¦ããã¨æ°å¤è¨ç®ã§åã¡ç®ã®ãªãRubyã¯æååå¦çã«ãã£ã¡ã注åãã¦ããã§ãæååå¦çãããRubyã®ä¸»æ¦å ´ãããã§Rubyãæååãããã¦ã«ã¿ããªã§æ±ã£ã¦ããã¨ã«ã¯ãããªãã®çç±ã¨ãããã®ããããã¤ã¾ãå解ãããã¨ããã»ããå°ããã¨ãå¢ãããIVSã¨ãã https://twitter.com/shyouhei/status/528
MacçExcelã¯BOMä»ãUTF-16LEã§ãªãã¨æ£å¸¸ã«ã¤ã³ãã¼ãã§ãã¾ããã 以ä¸Railsã®ã³ã³ããã¼ã©ã¼ããã®æç²ã ãã¤ã³ãã¯ãBOMã®ãã¤ãåã force_encoding("UTF-16LE") ãã¦ããã¨ããã§ãã ããããªãã¨ãoutputï¼UTF-16LEï¼ã¨é£çµããéã«ã¨ã©ã¼ãåºã¾ãï¼ã½ã¼ã¹ã³ã¼ããUTF-8ã ã¨BOMã®ãã¤ãåãå½ç¶UTF-8æååã¨ã¿ãªãããã®ã§ï¼ã format.csv { header = "ID,æ°å,ä½æ,å¹´é½¢,é»è©±çªå·\r\n" CSV.generate(output = header) do |csv| @users.each do |user| csv << [user.id, user.name, user.address, user.age, user.tel] end end bom = "\xFE\xFF".force_e
ããã¯ï¼ãã¡ãã®ãµã¤ãã«ããã¨ï¼ Depending on your requirements, this may or may not be what you want, but it is certainly consistent with the overall design of the String type to abstract away as many Unicode details as possible. Rule of thumb: if two strings look equal to the user, they will be equal in your code. ã¤ã¾ãï¼ãUnicodeã§ã®å®è£ ã«ãããããï¼ã¦ã¼ã¶å´ããã®è¦ãç®ãåãã§ããããã«ã¯ï¼ã³ã¼ãä¸ã§ãåä¸ã¨ãã¦æ±ãããã¹ãã§ãããã¨ããååã«åºã¥ãã¦ããã¨ã®ãã¨ã§ãã å®éï¼ãã®ä»æ§ã¯Apple
çµµæåãªã©ãæ ¼ç´ã§ããããã«ãããããMySQL ã® encoding ã utf8mb4 ã«ããã¨ã1æåãæ大 4ãã¤ãã«ãªããããã¨ãprimary key 㨠unique key ã¨ãã¦ä½¿ãã«ã©ã ããInnoDB ã®æå¤§é· 767ãã¤ããè¶ ããããã«ã ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes ã¨ããã¨ã©ã¼ãçºçããã ãããä¹ãè¶ããããã®æé ã¯ä»¥ä¸ã®éãã 1) ã¾ããmy.cnf ã«ä»¥ä¸ã追å ã㦠restart ãããã character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci innodb_file_per_table = 1 innodb_file_format = Barracu
Googleã¯æ¬æ¥ãæ¥æ¬èªãå«ãéã¢ã«ãã¡ãããæåã使ãã¡ã¼ã«ã¢ãã¬ã¹ã¨ã®éåä¿¡ã«å¯¾å¿ãããã¨çºè¡¨ãã¾ããã Official Google Blog: A first step toward more global email http://googleblog.blogspot.jp/2014/08/a-first-step-toward-more-global-email.html å¾æ¥ãã¡ã¼ã«ã¢ãã¬ã¹ã«ä½¿ããæåã¯AããZã¾ã§ã®ã©ãã³æå(ã¢ã«ãã¡ããã)ã ãã§ãéã¢ã«ãã¡ãããã使ç¨ããå ´åãGmailããèªèãããã¨ã¯ã§ãããã¡ã¼ã«ã®éåä¿¡ã¯ä¸å¯è½ã§ããããã®ç¶æ³ãæ¹åãã¦ãGoogleã¯æ¥æ¬èªãä¸å½èªãã¢ã¯ã»ã³ãã¤ãã®ã©ãã³ç¹æ®æåãªã©ãGmailå´ããèªèã§ããããã«ãã¾ãããããã«ãããä¾ãã°ããæ¦@ã¡ã¼ã«.ã°ã¼ã°ã«ãã¨ããã¡ã¼ã«ã¢ãã¬ã¹ããã®ã¡ã¼ã«ãåä¿¡ã§ããã¾ããã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}