From moriyoshi at gmail.com Tue Sep 4 06:45:40 2007 From: moriyoshi at gmail.com (Moriyoshi Koizumi) Date: Tue, 4 Sep 2007 19:45:40 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5GyhC?= =?iso-2022-jp?b?GyRCJGsbKEIgY2hhcnNldCAbJEIkSyREJCQkRhsoQg==?= Message-ID: ????????????? ???????? gettext/rails.rb:95???????? ActionController#init_content_type() ??Content-Type ???????????????? Content-Type ??????????????????????????charset ?????? (????) ????? GetText.output_charset ??? MIME preferred name ??????????????????????? ????????????????????? Content-Type: text/html; charset=UTF-8 ??????????? Content-Type: text/html; charset=UTF8 ?????????????????????????? (?????????) ???????????????????? ????????????? GetText.output_charset ? MIME preferred name ????????????????????????????????????????????????????????? ???????????????????????????????? ????????? Ruby-GetText ?????? 1.10.0 ????CVS ? HEAD ???????????????? http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/gettext/lib/gettext/rails.rb?annotate=1.65&root=gettext -- Moriyoshi Koizumi From mutoh at highway.ne.jp Tue Sep 4 08:43:54 2007 From: mutoh at highway.ne.jp (Masao Mutoh) Date: Tue, 4 Sep 2007 21:43:54 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5JGsbKEIgY2hh?= =?iso-2022-jp?b?cnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: References: Message-ID: <20070904214354.07741cdb.mutoh@highway.ne.jp> ?????? On Tue, 4 Sep 2007 19:45:40 +0900 "Moriyoshi Koizumi" wrote: > ????????????? > ???????? > > gettext/rails.rb:95???????? ActionController#init_content_type() > ??Content-Type ???????????????? Content-Type > ??????????????????????????charset ?????? (????) ????? > GetText.output_charset ??? MIME preferred name ??????????????????????? ??? ???????UTF-8???????? charset???????UTF-8??????? ?????????????????????????????? > ????????????????????? > > Content-Type: text/html; charset=UTF-8 > > ??????????? > > Content-Type: text/html; charset=UTF8 > > ?????????????????????????? (?????????) ???????????????????? > > > ????????????? GetText.output_charset ? MIME preferred name > ????????????????????????????????????????????????????????? ???output_charset?MIME preferred name????????????????? ???????????? gettext/rails.rb?self.init_gettext??????????????? charset??UTF-8??????????????charset???????? "UTF8"?????????????????????????????? ???????????????????????"UTF-8"?????????? ?ruby-gettext?????????? ?????????????charset???????????????????? % telnet localhost 3000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. GET /blog/ HTTP/1.1 host: localhost HTTP/1.1 200 OK Cache-Control: no-cache Connection: Keep-Alive Date: Tue, 04 Sep 2007 12:30:02 GMT Content-Type: text/html; charset=UTF-8 #?? Server: WEBrick/1.3.1 (Ruby/1.8.6/2007-03-13) Content-Length: 3114 Set-Cookie: _session_id=3184b840008e2f1d4b37aa133dfa3ed8; path=/ GetText Sample Blog on RoR #????????????? -- .:% Masao Mutoh From moriyoshi at gmail.com Tue Sep 4 09:51:30 2007 From: moriyoshi at gmail.com (Moriyoshi Koizumi) Date: Tue, 4 Sep 2007 22:51:30 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5GyhC?= =?iso-2022-jp?b?GyRCJGsbKEIgY2hhcnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: <20070904214354.07741cdb.mutoh@highway.ne.jp> References: <20070904214354.07741cdb.mutoh@highway.ne.jp> Message-ID: ????? 07/09/04 ? Masao Mutoh ????????: > > gettext/rails.rb:95???????? ActionController#init_content_type() > > ??Content-Type ???????????????? Content-Type > > ??????????????????????????charset ?????? (????) ????? > > GetText.output_charset ??? MIME preferred name ??????????????????????? > > ??? > ???????UTF-8???????? > charset???????UTF-8??????? > ?????????????????????????????? ?????????????????????????? ????????,init_gettext ????????? charset ??????????? $KCODE ??????????????????????? charset ?????????? (?????????????????????HTTP ???????????????????????????????) ????????????????????????????????????? init_gettext 'reminder', :charset => $KCODE > > ????????????? GetText.output_charset ? MIME preferred name > > ????????????????????????????????????????????????????????? > > gettext/rails.rb?self.init_gettext??????????????? > charset??UTF-8??????????????charset???????? > "UTF8"?????????????????????????????? > ???????????????????????"UTF-8"?????????? ????????? 1. self.init_gettext() ? charset ???????????????????????? (???? ??????????? UTF-8 ???????) 2. 1. ? charset ????????????????MIME preferred name ?????????????? 3. self.init_getttext() ??charset ?????????????????? output_charset ???????? 4. GetText.output_charset ????? MIME preferred name ?????????????? 5. init_content_type() ??output_charset ??? MIME preferred name ????? HTTP ??????????????? ?????????? # ???????????????????????????????????????? -- Moriyoshi Koizumi From moriyoshi at gmail.com Tue Sep 4 09:59:02 2007 From: moriyoshi at gmail.com (Moriyoshi Koizumi) Date: Tue, 4 Sep 2007 22:59:02 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5GyhC?= =?iso-2022-jp?b?GyRCJGsbKEIgY2hhcnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: References: <20070904214354.07741cdb.mutoh@highway.ne.jp> Message-ID: ????? ???????????????? 07/09/04 ? Moriyoshi Koizumi ????????: > ????????? > 1. self.init_gettext() ? charset ???????????????????????? (???? > ??????????? UTF-8 ???????) > 2. 1. ? charset ????????????????MIME preferred name ?????????????? > 3. self.init_getttext() ??charset ?????????????????? output_charset ???????? > 4. GetText.output_charset ????? MIME preferred name ?????????????? > 5. init_content_type() ??output_charset ??? MIME preferred name ????? > HTTP ??????????????? > ????????????????????????????????MIME preferred name ????????????? IANA ???????? -- Moriyoshi Koizumi From mutoh at highway.ne.jp Tue Sep 4 12:19:27 2007 From: mutoh at highway.ne.jp (Masao Mutoh) Date: Wed, 5 Sep 2007 01:19:27 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5JGsbKEIgY2hh?= =?iso-2022-jp?b?cnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: References: <20070904214354.07741cdb.mutoh@highway.ne.jp> Message-ID: <20070905011927.b4fa30bb.mutoh@highway.ne.jp> ?????? On Tue, 4 Sep 2007 22:51:30 +0900 "Moriyoshi Koizumi" wrote: > ????? > > 07/09/04 ? Masao Mutoh ????????: > > > gettext/rails.rb:95???????? ActionController#init_content_type() > > > ??Content-Type ???????????????? Content-Type > > > ??????????????????????????charset ?????? (????) ????? > > > GetText.output_charset ??? MIME preferred name ??????????????????????? > > > > ??? > > ???????UTF-8???????? > > charset???????UTF-8??????? > > ?????????????????????????????? > > ?????????????????????????? > > ????????,init_gettext ????????? charset ??????????? $KCODE > ??????????????????????? charset ?????????? (?????????????????????HTTP > ???????????????????????????????) ????????????????????????????????????? ????????????????????????charset? 1????????GetText??????????????????????????????????? ???????2????????? 1. mo???????????????charset???????????????? 2. HTTP????charset?????? ??????charset?Shift_JIS???????????1.2.???????????????????? ????????DB????Shift_JIS??????????????????UTF-8??Shift_JIS ????????????? > init_gettext 'reminder', :charset => $KCODE > > > ????????????? GetText.output_charset ? MIME preferred name > > > ????????????????????????????????????????????????????????? > > > > gettext/rails.rb?self.init_gettext??????????????? > > charset??UTF-8??????????????charset???????? > > "UTF8"?????????????????????????????? > > ???????????????????????"UTF-8"?????????? > > ????????? > 1. self.init_gettext() ? charset ???????????????????????? (???? > ??????????? UTF-8 ???????) ????????????UTF-8??Shift_JIS??? ???Rails???UTF-8???????????????????????? ??????1??????????????:charset => "UTF-8"??????????? ???????????????????? > 2. 1. ? charset ????????????????MIME preferred name ?????????????? ??? ???????????Iconv?????????Iconv??????????? ?Ruby-GetText????????????????? ?????UTF8??????Iconv???????????????????? ????????????UTF8???????????????????????????? > 3. self.init_getttext() ??charset ?????????????????? output_charset ???????? ??? > 4. GetText.output_charset ????? MIME preferred name ?????????????? ??? > 5. init_content_type() ??output_charset ??? MIME preferred name ????? > HTTP ??????????????? ???????????????????????????????????? ???????????????????????????????????????????? $KCODE????1?????????????"u"????UTF-8????????????? ???????????????????????? ????$KCODE?UTF-8???????????Rails????????????????? ???????????????????? > ????????????????????????????????MIME preferred name ????? > ???????? IANA ???????? ??????????????????IANA???????????????????????? ??????????????????????????????????? -- .:% Masao Mutoh From moriyoshi at gmail.com Wed Sep 5 13:10:37 2007 From: moriyoshi at gmail.com (Moriyoshi Koizumi) Date: Thu, 6 Sep 2007 02:10:37 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5GyhC?= =?iso-2022-jp?b?GyRCJGsbKEIgY2hhcnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: <20070905011927.b4fa30bb.mutoh@highway.ne.jp> References: <20070904214354.07741cdb.mutoh@highway.ne.jp> <20070905011927.b4fa30bb.mutoh@highway.ne.jp> Message-ID: ????? 07/09/05 ? Masao Mutoh ????????: > > ????????,init_gettext ????????? charset ??????????? $KCODE > > ??????????????????????? charset ?????????? (?????????????????????HTTP > > ???????????????????????????????) ????????????????????????????????????? > > ????????????????????????charset? > 1????????GetText??????????????????????????????????? > > ???????2????????? > 1. mo???????????????charset???????????????? > 2. HTTP????charset????? after_filter ????????????????????????????HTTP????????????????????????????????????????????2. ???????????????????????? (????????????????????????)? > > ????????? > > 1. self.init_gettext() ? charset ???????????????????????? (???? > > ??????????? UTF-8 ???????) > > ????????????UTF-8??Shift_JIS??? > ???Rails???UTF-8???????????????????????? > ??????1??????????????:charset => "UTF-8"??????????? > ???????????????????? ????????????????Rails ??????????????? UTF-8 ?????????????????????? (???? UTF-8 ?????????????)? (?????????????) > ????$KCODE?UTF-8???????????Rails????????????????? > ???????????????????? ???? ISO-8859-1 ????????? UTF-8 ???????????? # $KCODE ???????? ISO-8859-1 ????????????? > > 2. 1. ? charset ????????????????MIME preferred name ?????????????? > > ??? > ???????????Iconv?????????Iconv??????????? > ?Ruby-GetText????????????????? > ?????UTF8??????Iconv???????????????????? > ????????????UTF8???????????????????????????? ?????????????iconv ?????????????????? HTTP ????????? Content-Type ? charset ?????????????????????????????????????????????????????????????????????? > > 5. init_content_type() ??output_charset ??? MIME preferred name ????? > > HTTP ??????????????? > > ???????????????????????????????????? > ???????????????????????????????????????????? > $KCODE????1?????????????"u"????UTF-8????????????? > ???????????????????????? > > ??????????????????IANA???????????????????????? > ??????????????????????????????????? ?????????????????????????????????????????????????????? ?????????????????????? a. ????????????????? (charset ????????????? IANA?????????) b. HTTP ??????????????????????? ?????????? b. ??????????? # ???????????????????????????????????????????????????? -- Moriyoshi Koizumi From mutoh at highway.ne.jp Thu Sep 6 07:20:14 2007 From: mutoh at highway.ne.jp (Masao Mutoh) Date: Thu, 6 Sep 2007 20:20:14 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5JGsbKEIgY2hh?= =?iso-2022-jp?b?cnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: References: <20070904214354.07741cdb.mutoh@highway.ne.jp> <20070905011927.b4fa30bb.mutoh@highway.ne.jp> Message-ID: <20070906202014.215c2d08.mutoh@highway.ne.jp> ?????? On Thu, 6 Sep 2007 02:10:37 +0900 "Moriyoshi Koizumi" wrote: > ????? > > 07/09/05 ? Masao Mutoh ????????: > > > > ????????,init_gettext ????????? charset ??????????? $KCODE > > > ??????????????????????? charset ?????????? (?????????????????????HTTP > > > ???????????????????????????????) ????????????????????????????????????? > > > > ????????????????????????charset? > > 1????????GetText??????????????????????????????????? > > > > ???????2????????? > > 1. mo???????????????charset???????????????? > > 2. HTTP????charset????? > > after_filter ????????????????????????????HTTP????????????????????????????????????????????2. > ???????????????????????? (????????????????????????)? ????? ?????????????????2.??????????????????????? 2.?????Ruby-GetText????????????????? ?HTTP????????????charset??????????????????????? ????????????????? after_filter????????????????????????????HTTP???????????? ??????????????????????Ruby-GetText??????????? Ruby-GetText???????????after_filter???????????HTTP???? ?????????????????????????Ruby-GetText???????? ????????????????? ?????????????????????Ruby-GetText????Tips??????? > > ??????????????????IANA???????????????????????? > > ??????????????????????????????????? > > ?????????????????????????????????????????????????????? > > ?????????????????????? > > a. ????????????????? (charset ????????????? IANA?????????) > b. HTTP ??????????????????????? > > ?????????? b. ??????????? > ????????Validation?????????????? ???????????????? ??????????????????????????????????????? Rails??????????charset?IANA??????????????????? ????????????? ???????????????????????a???? ????? -- .:% Masao Mutoh From moriyoshi at gmail.com Thu Sep 6 08:39:39 2007 From: moriyoshi at gmail.com (Moriyoshi Koizumi) Date: Thu, 6 Sep 2007 21:39:39 +0900 Subject: [gettext-u-ja] =?iso-2022-jp?b?Z2V0dGV4dC9yYWlscy5yYiA=?= =?iso-2022-jp?b?GyRCJCwbKEIgQ29udGVudC1UeXBlIBskQiRLPVBOTyQ5GyhC?= =?iso-2022-jp?b?GyRCJGsbKEIgY2hhcnNldCAbJEIkSyREJCQkRhsoQg==?= In-Reply-To: <20070906202014.215c2d08.mutoh@highway.ne.jp> References: <20070904214354.07741cdb.mutoh@highway.ne.jp> <20070905011927.b4fa30bb.mutoh@highway.ne.jp> <20070906202014.215c2d08.mutoh@highway.ne.jp> Message-ID: ????? 07/09/06 ? Masao Mutoh ????????: > > > ???????2????????? > > > 1. mo???????????????charset???????????????? > > > 2. HTTP????charset????? > > > > after_filter ????????????????????????????HTTP????????????????????????????????????????????2. > > ???????????????????????? (????????????????????????)? > > ????? > > ?????????????????2.??????????????????????? > > 2.?????Ruby-GetText????????????????? > ?HTTP????????????charset??????????????????????? > ????????????????? ???????????????????????????????????????????????????????????????????????????????????????????? > after_filter????????????????????????????HTTP???????????? > ??????????????????????Ruby-GetText??????????? > Ruby-GetText???????????after_filter???????????HTTP???? > ?????????????????????????Ruby-GetText???????? > ????????????????? > ?????????????????????Ruby-GetText????Tips??????? ??????????????????? gettext ?????????????????? gettext/rails ?????? (????????????????) ??????????????????????? Ruby-GetText ???????????????????????????????? -- Moriyoshi Koizumi (also reachable on )