Malformed UTF-8 characters in squid access log (was: Re: Logreport problems whit proxy squid function)

Wessel Dankers wsl at logreport.org
Thu Jan 2 16:17:50 CET 2003


On 2003-01-02 15:13:05+0100, Joost van Baal wrote:
>  all squid_access lr_tag-20021227151154-1897 squid_access2dlf warning
>   Malformed UTF-8 character (unexpected continuation byte 0xa0, with no
>   preceding start byte) in pattern match (m//) at
>   /usr/libexec/lire/convertors/squid_access2dlf line 31, <> line 33909.
> <snip>
>  all squid_access lr_tag-20021227151154-1897 squid_access2dlf warning
>   Malformed UTF-8 character (unexpected non-continuation byte 0x25,
>   immediately after start byte 0xe8) in pattern match (m//) at
>   /usr/libexec/lire/convertors/squid_access2dlf line 31, <> line 277304.
> 
> Please inspect line 33909 of your file access.log.1.  That's what
> squid_access2dlf chokes on.

Most likely unsetting your locale will help! Your log file contains some
high ascii characters, and because of the locale settings, perl tries to
interpret them as if they were UTF-8 character sequences.

	unset LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL

…would do it.

Good luck, and best wishes for 2003,

-- 
Wessel Dankers <wsl at logreport.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/development/attachments/20030102/fb969844/attachment.bin 


More information about the Development mailing list