Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102941 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1196 invoked from network); 21 Jul 2018 12:44:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2018 12:44:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.218.51 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.218.51 mail-oi0-f51.google.com Received: from [209.85.218.51] ([209.85.218.51:36857] helo=mail-oi0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/B6-47674-C9A235B5 for ; Sat, 21 Jul 2018 08:44:15 -0400 Received: by mail-oi0-f51.google.com with SMTP id n21-v6so10468575oig.3 for ; Sat, 21 Jul 2018 05:44:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lerdorf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KH7B2yMRVWhQoXmEKSVhYyuYIbltnrlPIkQ2bluxHeI=; b=n3MH+yo6x6x5A7NUMriatYh6cpYyT8fviz7WKk1sHhP5CX5Tuei4VmZx39wPFiMx1m E8NW9mmXeGFiRQ4Zhc74sDjPfHQT2kKyyIlgDap6HEssg6eYUeyEM12wMW7UCeJ3cxop K+B1yeRa7H9gOwUpMb5V5lRXcS8vt+wVO5hUX7wv5clypeIOJnV1roKykcN7OyM4OXyT bApkl4C+i43bhVXfCUIgUeC8mudvmc9cNK3hnQ8M4GtIDSAW+sxqbOJLipmBshFEVrIp gSMYBhD+El7YSCh6RQ2YBiouAJITMJOkpLUJ80dbNtZyVA/05C43Q9YH/jeft0gNtnjg iZ1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KH7B2yMRVWhQoXmEKSVhYyuYIbltnrlPIkQ2bluxHeI=; b=fbDNzBg7/oJFUs7DlAifmK5TIU7gMxmO0d8RyE7rwu1HX7qmxkBFDg1mLlXLvRRyjV 9GOjiDgYH+f+pNsINfUOflQcnBWDYzrxyRKYz0Yk0h5lKCqIt7hkDjLZPcyAmegbJDph Xu/4UzpDt35YDf6UtjYIY7Ht7zQ+J6MiW//0P7qlCr8hrBGv0c9wcLm2Um86eH+KHLwE xi93ByBmsvLTtlfrASAWfGUtbNtu/0sTNk77Qg38cFvv/FRLTPS1ebK7sVXKu9euAfYf fSdfyA/3JYZn6INYoudNEOmu1iJHrR1R7HatZFStCecmkwVTZibHiJR14Mk2hIBWjnh1 wsqg== X-Gm-Message-State: AOUpUlHN25Cymo5iDaL6q6GZrjT1ff5wPojH1akKC94FkqJ+eaqLsYNi 5MpuRKDIKYN2vL/aHiVlmmpybpTgq6jn5AKvPnEHOQ== X-Google-Smtp-Source: AAOMgpcFSVB0C1k9SqryjO1wdz6gQWHQd2iWRxsy945LZ7fLTeBJyG9bPWQRUgpOrWcr0YZXICqIomcGdvFoQeNnSew= X-Received: by 2002:aca:6044:: with SMTP id u65-v6mr1764735oib.323.1532177049977; Sat, 21 Jul 2018 05:44:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:4786:0:0:0:0:0 with HTTP; Sat, 21 Jul 2018 05:43:29 -0700 (PDT) In-Reply-To: References: <3ce44a21a935f3d458bd4fea99db89a4fd2c9603.camel@ku.edu> Date: Sat, 21 Jul 2018 08:43:29 -0400 Message-ID: To: "Hoffman, Zachary Robert" Cc: "mapopa@gmail.com" , "me@kelunik.com" , "internals@lists.php.net" Content-Type: multipart/alternative; boundary="000000000000cc1b08057181c4fc" Subject: Re: [PHP-DEV] bugs.php.net downtime From: rasmus@lerdorf.com (Rasmus Lerdorf) --000000000000cc1b08057181c4fc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ok, should be fixed now. https://bugs.php.net/bug.php?id=3D76553 looks good= . But I think between my backup and the conversion I lost a couple of bug comments from this morning. Sorry about that. -Rasmus On Sat, Jul 21, 2018 at 8:31 AM, Rasmus Lerdorf wrote: > Uh, ok, something obviously went wrong there. Checking. > > On Sat, Jul 21, 2018 at 8:30 AM, Rasmus Lerdorf > wrote: > >> For future reference, here is what I did to fix the encoding problem: >> >> MariaDB [phpbugsdb]> select sdesc from bugdb where id=3D76553; >> +----------------------------------------------------------- >> ------------------------------------------------------------ >> ---------------------------------------------+ >> | sdesc >> >> | >> +----------------------------------------------------------- >> ------------------------------------------------------------ >> ---------------------------------------------+ >> | =C3=90=CB=9C=C3=90=C2=BC=C3=91 =C3=90=C2=BF=C3=90=C2=B5=C3=91=E2=82=AC= =C3=90=C2=B5=C3=90=C2=BC=C3=90=C2=B5=C3=90=C2=BD=C3=90=C2=BD=C3=90=C2=BE=C3= =90=C2=B9 =C3=90=C2=BC=C3=90=C2=BE=C3=90=C2=B6=C3=90=C2=B5=C3=91=E2=80=9A = =C3=91 =C3=90=C2=BE=C3=90=C2=B4=C3=90=C2=B5=C3=91=E2=82=AC=C3=90=C2=B6=C3= =90=C2=B0=C3=91=E2=80=9A=C3=91=C5=92 =C3=91=C6=92=C3=90=C2=BF=C3=91=E2=82= =AC=C3=90=C2=B0=C3=90=C2=B2=C3=90=C2=BB=C3=91 >> =C3=91=C5=BD=C3=91=E2=80=B0=C3=90=C2=B8=C3=90=C2=B5 >> | >> +----------------------------------------------------------- >> ------------------------------------------------------------ >> ---------------------------------------------+ >> 1 row in set (0.00 sec) >> >> MariaDB [phpbugsdb]> alter table bugdb drop index email; >> Query OK, 76298 rows affected (0.85 sec) >> Records: 76298 Duplicates: 0 Warnings: 0 >> >> MariaDB [phpbugsdb]> alter table bugdb modify sdesc varbinary(80) NOT >> NULL DEFAULT '', modify ldesc binary NOT NULL, modify email varbinary(40= ) >> NOT NULL DEFAULT ''; >> Query OK, 76298 rows affected, 65535 warnings (0.65 sec) >> Records: 76298 Duplicates: 0 Warnings: 76091 >> >> MariaDB [phpbugsdb]> alter table bugdb modify sdesc varchar(80) CHARACTE= R >> SET utf8mb4 NOT NULL DEFAULT '', modify ldesc text CHARACTER SET utf8mb4 >> NOT NULL, modify email varchar(40) CHARACTER SET utf8mb4 NOT NULL DEFAUL= T >> ''; >> Query OK, 76298 rows affected, 127 warnings (0.57 sec) >> Records: 76298 Duplicates: 0 Warnings: 127 >> >> MariaDB [phpbugsdb]> alter table bugdb add FULLTEXT INDEX `email` >> (`email`,`sdesc`,`ldesc`); >> Query OK, 76298 rows affected (1.56 sec) >> Records: 76298 Duplicates: 0 Warnings: 0 >> >> MariaDB [phpbugsdb]> select sdesc from bugdb where id=3D76553; >> +----------------------------------------------------------- >> -----------------------+ >> | sdesc >> | >> +----------------------------------------------------------- >> -----------------------+ >> | =D0=98=D0=BC=D1=8F =D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0= =BE=D0=B9 =D0=BC=D0=BE=D0=B6=D0=B5=D1=82 =D1=81=D0=BE=D0=B4=D0=B5=D1=80=D0= =B6=D0=B0=D1=82=D1=8C =D1=83=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D1=8F=D1=8E=D1= =89=D0=B8=D0=B5 >> | >> +----------------------------------------------------------- >> -----------------------+ >> 1 row in set (0.00 sec) >> >> The trick was to convert the columns to binary first. When I went >> straight from latin1 to utf8 I got the utf8 equivalent of the latin1 >> characters. By telling it that the data was actually binary first, it >> converted from binary to utf8 which appears to have worked. There were s= ome >> warnings, which I assume are invalid utf8 byte sequences somewhere. >> >> -Rasmus >> > > --000000000000cc1b08057181c4fc--