""Nuno Lopes"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On Wed, 21 Sep 2005, Nuno Lopes wrote: > > > >> The chm build tools are available at http://cvs.php.net/phpdoc/chm > >> However this is a problem in the server's configuration, because the chms > >> I've > >> built on my machine are fine. It's probably just a locales problem within > >> openjade. > > > > ?? Nothing in the configuration changed in a whole year... and it > > suddendly stopped working. I also can't debug anything as Windows > > refuses to show any CHMs at all right now. > > > > Derick > > I was searching on google for this problem, but I couldn't find anything.. > I'm lost. > Maybe a change in the dsssl sheets or the way that openjade is invoked, I > don't know.. > > Nuno
I got it working and discovered some problems with make_chm.bat, make_chm.php and make_make_chm_fancy.php. First of all, I was trying and got it working under Win32, b'ze I think it's appropriate since MS hhc.exe is a native Win32 executable. It might be tried under wine and Linux but I didn't do it. Most of the problems were with fopen() mode, directories and a lot of substr() around $FANCY. Finally, produced chm file works fine and contains correct links and topics. If anybody is interested in Win32 target, just let me know and I'll post diff. Now regarding wrong symbols. I was unable to find any reason for the trouble. But one possible way for it is found. All final HTMLs for English lang are with charset=Windows-1252 According to chm/common.php, there is convertCharset() function is called for all of the files and it is to convert the content from UTF-8 (internal charset, see common.php:6) into preferred charset which is Win-1252 for English. Looks like it fails to translate some international stuff into Win1252.