[Phpmyadmin-devel] PDF output in utf-8
Marc Delisle
DelislMa at CollegeSherbrooke.qc.ca
Thu Dec 30 07:58:03 CET 2004
Michal Čihař a écrit :
> Hi
>
> On Thu 30. 12. 2004 16:27, Marc Delisle wrote:
>
>>I tried it, running in Czech UTF-8. I get those errors:
>>
>>Notice: Uninitialized string offset: 7 in
>>/var/www/html/phpMyAdmin-HEAD/libraries/fpdf/ufpdf.php on line 422
>
>
> Didn't you have iso-8859-1 texts somewhere in description or table name?
>
Michal,
I don't think so.
I tried with English UTF-8 and get no error! But with Czech UTF-8 or French
UTF-8, it generates errors.
I made a test schema containing only this table:
-- phpMyAdmin SQL Dump
-- version 2.6.1-rc2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 30, 2004 at 10:51 AM
-- Server version: 4.0.20
-- PHP Version: 5.0.2
--
-- Database: `base2`
--
-- --------------------------------------------------------
--
-- Table structure for table `persons`
--
CREATE TABLE `persons` (
`id` tinyint(4) NOT NULL auto_increment,
`person_name` varchar(200) NOT NULL default '',
`town_code` varchar(5) default '0',
`country_code` char(1) default NULL,
`car_code` char(3) NOT NULL default '',
`bike_code` int(11) NOT NULL default '0',
`buglien` varchar(12) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `town_code` (`town_code`),
KEY `country_code` (`country_code`),
KEY `pays-ville` (`country_code`,`town_code`)
) TYPE=InnoDB PACK_KEYS=1 DELAY_KEY_WRITE=1 COMMENT='table personnes aaa'
AUTO_INCREMENT=2 ;
--
-- Dumping data for table `persons`
--
INSERT INTO `persons` VALUES (1, 'Marc', 'M', 'C', '5', 20, '');
--
-- Constraints for dumped tables
--
--
-- Constraints for table `persons`
--
ALTER TABLE `persons`
ADD CONSTRAINT `persons_ibfk_37` FOREIGN KEY (`town_code`) REFERENCES `towns`
(`town_code`),
ADD CONSTRAINT `persons_ibfk_38` FOREIGN KEY (`country_code`) REFERENCES
`countries` (`country_code`);
More information about the Developers
mailing list