Fog Creek Software
Discussion Board




3.1.19 PHP RELEASED

Lots of minor bug fixes which were discussed on the forum are included.

http://www.fogcreek.com/FogBUGZ/KB/setup/ChangesinPHPupdate.html

Michael H. Pryor
Fog Creek Software
Thursday, March 04, 2004

I cannot update, the download page says:

"FogBUGZ for Unix 3.1.19 has been downloaded too many times. Please email us for assistance."

Angel Fradejas
Monday, March 08, 2004

That means it has been downloaded "too many times" by you, not too many times in general. This counter is merely a means of piracy prevention. We've reset your download counter.

Dmitri
Fog Creek Software
Monday, March 08, 2004

I've upgraded to this version, but the problems with character-encoding in incoming emails are still there.

I see a diamond with a "?" inside for every accented character.

BTW, my php is compiled with support for iconv() and mb_convert_encoding().

OS: Linux
Apache: 1.3.29
PHP: 4.3.4

Angel Fradejas
Tuesday, March 09, 2004

Is your browser encoding set to UTF-8? Or auto-detect or something else?

Dmitri
Fog Creek Software
Tuesday, March 09, 2004

My browser is Firefox, although the problem is also present with IE6 (no diamonds with "?" on IE, but weird symbols, you know IE is not so compliant to represent unknown encodings).

I can confirm that the page is served by our apache with a http header "Content-type: text/html; charset=utf-8", and also you have a meta http-equiv in your source, that Firefox would honour, anyway.

To my understanding, Fogbugz is serving the page as utf-8, but  part of it (the mail bodies) are encoded in iso-8859-1.

Angel Fradejas
Wednesday, March 10, 2004

Ah, I used the mbstring conversion function and you probably don't have that module installed:
http://ca2.php.net/mb_convert_encoding
and
http://ca2.php.net/manual/en/ref.mbstring.php

php -m | grep mbstring will tell you if you do or not.


But, you can switch to use the iconv function instead which won't require you to install a module.

Basically all you need to do is change the line in ThistleCStringUtil.php that says

---- OLD ----
if ( function_exists("mb_convert_encoding") )
$unicodefromdart = mb...
--------------
change it to...
---- NEW ---
$unicodefromdart = iconv($charset, "UTF-8", $str);
--------------

Michael H. Pryor
Fog Creek Software
Wednesday, March 10, 2004

*  Recent Topics

*  Fog Creek Home