Re: Special characters Q=E6=F8=E5=29_and_zi?= pfiles
From: rl (nospam_at_nospam.org)
Date: 01/07/05
- Next message: Rutger Claes: "Get € past a XML parser"
- Previous message: rl: "Re: multiple function calls or character array concat?"
- In reply to: Roy W. Andersen: "Re: Special characters Q=E6=F8=E5=29_and_zi?= pfiles"
- Next in thread: Roy W. Andersen: "Re: Special characters Q=E6=F8=E5=29_and_z?= ipfiles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 07 Jan 2005 13:39:03 +0100
Roy,
> rl wrote:
>
>> Hello Roy,
>>
> [snip]
> Thanks for the help, it's appreciated even though it unfortunately
> doesn't help me much.
Doesn't look like you've read.
> Guess I'll just have to wait for the developer of
> my class to look into it - I don't really know where to begin looking
> for the cause, although I have tried. I suspect the error lies in the
> use of pack() and unpack() which are functions I don't understand how
> work (the PHP manual doesn't help me there - it's just my knowledge of
> working with binary files that's limiting). I'm no expert on character
> encodings either (I know ISO-8859-1 and UTF-8, but that's about it), so
> I've been more or less stumbling around blindly in the code, and when
> I've tried some changes I've ended up with corrupted zip-files ;)
pack and unpack leave character encoding completely untouched, if you
specify the conversion accordingly. That's why I asked for respective
code sniplets (if you're allowed).
And: All files to be put to the zip must be opened in binary mode if need
to be opened by yourself anyway.
I had no problems putting complete binary files to database and fetching
out again via unpack and pack.
> I've tried several different settings using setlocale() and it doesn't
> make any difference at all, so I've concluded that the zip-class doesn't
> use any functions affected by PHP's own locale-setting.
>
> What's strange though is that I can't find any reference to this problem
> anywhere on the web or the google Usenet archive, and the problem
> doesn't only affect 'æ', 'ø' and 'å' but all special
> language-characters. That lead me to believe it was the settings on my
> server that was causing it, but when testing it on my project's
> sourceforge webspace I got the same thing happening there as well, which
> again tells me the problem is with the class itself.
Or with your own code ...
- Next message: Rutger Claes: "Get € past a XML parser"
- Previous message: rl: "Re: multiple function calls or character array concat?"
- In reply to: Roy W. Andersen: "Re: Special characters Q=E6=F8=E5=29_and_zi?= pfiles"
- Next in thread: Roy W. Andersen: "Re: Special characters Q=E6=F8=E5=29_and_z?= ipfiles"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|