Re: Special characters Q=E6=F8=E5=29_and_zi?= pfiles

From: rl (nospam_at_nospam.org)
Date: 01/07/05


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 ...



Relevant Pages

  • Re: sp1a install
    ... I trued the sp2 and had the problem that it would unpack to a second ... You need to have enough space to unpack AND install the service pack. ... However - I suggest you download and install Service Pack 2. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Pack & Go Wizard
    ... What's wrong is that you need to pack your presentation to your hard drive. ... Then you'll probably want to unpack it, especially if you're sending the CD to ... PowerPoint and Windows 98 are not equipped to write directly to a CD. ... > the message: "Invalid destination directory." ...
    (microsoft.public.powerpoint)
  • Re: what is the ppz file created by Pack and Go?
    ... Pack and Go also created a file called PNGSETUP.EXE. ... destinationyou unpack the suitcase so that you can use its contents. ... I downloaded the PowerPoint Viewer. ... > file/pack and go and this created a ppz file. ...
    (microsoft.public.powerpoint)
  • Re: PPS files that dont need PP or PPViewer
    ... When you do the Pack and Go and then unpack the files, the music file should ... >>You can include a link to the PPT Viewer for your friends ...
    (microsoft.public.powerpoint)
  • Re: how to read file content into an array?
    ... going to be messing around with binary files. ... binmode INPUT; Q1 ... syswrite EXCERPT_GOLD, $byte; #Q4 ... $byte will contain all the data in $tmp_gold which is unpack as hex string. ...
    (perl.beginners)