[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

[webdav-jp:0244] Re: mod_encoding-20011211a での iconv_string: conversion error



西と申します。

宮本さま:ありがとうございました。

httpd.confの設定を変えたのですが、”[warn] iconv_string: conversion error”は 依然としてでます。
mod_encoding.cの90行目:
if (iconv(cd, &srcbuf, &srclen, &outbuf, &outlen) == (size_t)(-1)) {
で失敗しているからと予想しているのですが、回避する策がありましたら教えてくだ さい。


httpd.conf(抜粋)を変えたら以下のような結果となりました。

(パターン1)
<IfModule mod_encoding.c>
  EncodingEngine on
  SetServerEncoding UTF-8
  DefaultClientEncoding JA-AUTO-SJIS-MS
  AddClientEncoding "Microsoft .* DAV" SJIS
  AddClientEncoding "xdwin9x" SJIS
  AddClientEncoding "cadaver/" EUC-JP
</IfModule>

ファイル/フォルダー日本語表示:可能
[warn] iconv_string: conversion error:あり。

(パターン2)
<IfModule mod_encoding.c>
  EncodingEngine on
  SetServerEncoding UTF-8
  DefaultClientEncoding JA-AUTO-SJIS-MS
#  AddClientEncoding "Microsoft .* DAV" SJIS
#  AddClientEncoding "xdwin9x" SJIS
  AddClientEncoding "cadaver/" EUC-JP
</IfModule>

ファイル/フォルダー日本語表示:不可
[warn] iconv_string: conversion error:あり。
以下、ログ
[Thu Feb 21 13:06:18 2002] [notice] caught SIGTERM, shutting down
[Thu Feb 21 13:06:21 2002] [warn] module mod_become.c is already added, skipping
server_setup: entered
folder_setup: entered
server_setup: entered
[Thu Feb 21 13:06:21 2002] [warn] module mod_encoding.c is already added, skipping
[Thu Feb 21 13:06:21 2002] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Feb 21 13:06:21 2002] [notice] Apache/1.3.23 (Unix) mod_become/1.2 DAV/1.0.3 configured -- resuming normal operations
[Thu Feb 21 13:06:21 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:06:40 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:06:40 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:06:40 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:06 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:21 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:44 2002] [warn] iconv_string: conversion error
[Thu Feb 21 13:07:44 2002] [error] [client 172.16.1.133] File does not exist: /userdata/cug1/Ukaih動向調査メモ.txt
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:44 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:44 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8
[Thu Feb 21 13:07:51 2002] [warn] iconv_string: conversion error
config_merge: entered
merged: enable_function == 2
merged: server_encoding == UTF-8


【付録】構成
・サーバ
Redhat Linux 7.2
apache_1.3.23
mod_dav-1.0.3-1.3.6
libiconv-1.7
mod_encoding-20011211a

・クライアント
Win2000 Professional Webフォルダー

At 16:49 02/02/19 +0900, you wrote:

 みやもとともーします。

> 【3】設定
> httpd.conf(抜粋)
> LoadModule encoding_module      libexec/mod_encoding.so
> AddModule mod_encoding.c
> <IfModule mod_encoding.c>
>    EncodingEngine on
>    SetServerEncoding UTF-8
>    AddClientEncoding SJIS "Microsoft .* DAV"
>    AddClientEncoding SJIS "xdwin9x"
>    AddClientEncoding EUC-JP "cadaver/"
> </IfModule>

 AddClientEncoding の指定が、新しい mod_encoding では
変わってます。

 AddClientEncoding UserAgent Encoding

の順序です。
 上記の場合、例えば

    AddClientEncoding "Microsoft .* DAV" SJIS

とかしてみるとよいかと。
 また、アーカイブ中の README.TXT には

 <IfModule mod_encoding.c>
  EncodingEngine        on
  SetServerEncoding     UTF-8
  DefaultClientEncoding JA-AUTO-SJIS-MS

  AddClientEncoding "cadaver/" EUC-JP
 </IfModule>

というような設定例が記述されています。
 こちらでもお試しくださいませ。


--- 宮本 久仁男(Kunio Miyamoto) E-mail: kmiya@xxxxxxxxxxxxxxxxx