Re: [PHP-DEV] IntlCharsetDetector

2016-04-14 Thread Tom Worster
On 4/11/16 6:11 PM, Sara Golemon wrote: On Mon, Apr 11, 2016 at 9:36 AM, Stanislav Malyshev wrote: The point is even imperfect detection may be useful in certain circumstances, and detector being part of ICU hints that people find it useful enough to spend time implementing and supporting it. W

Re: [PHP-DEV] IntlCharsetDetector

2016-04-11 Thread Sara Golemon
On Mon, Apr 11, 2016 at 9:36 AM, Stanislav Malyshev wrote: > The point is even imperfect detection may be useful in certain > circumstances, and detector being part of ICU hints that people find it > useful enough to spend time implementing and supporting it. We should > not ignore that. > Well, S

Re: [PHP-DEV] IntlCharsetDetector

2016-04-11 Thread Fleshgrinder
On 4/11/2016 6:36 PM, Stanislav Malyshev wrote: > Hi! > >>> As you say, it doesn't work properly. As a matter of fact, guessing >>> charsets, like timezones, is not possible. You need to know which >>> charset something is in. If not, you need to address *that* problem. > > It is true that you

Re: [PHP-DEV] IntlCharsetDetector

2016-04-11 Thread Stanislav Malyshev
Hi! >> As you say, it doesn't work properly. As a matter of fact, guessing >> charsets, like timezones, is not possible. You need to know which >> charset something is in. If not, you need to address *that* problem. It is true that you can not detect charsets with 100% accuracy. It is, however,

Re: [PHP-DEV] IntlCharsetDetector

2016-04-11 Thread Bishop Bettini
On Fri, Apr 8, 2016 at 2:20 PM, Sara Golemon wrote: > On Thu, Apr 7, 2016 at 9:36 AM, Bishop Bettini wrote: > > The problem is, developers are going to write code to guess character > sets. > > > True. But they're going to put more faith in something in the > standard distribution, assuming it'

Re: [PHP-DEV] IntlCharsetDetector

2016-04-08 Thread Sara Golemon
On Thu, Apr 7, 2016 at 9:36 AM, Bishop Bettini wrote: > The problem is, developers are going to write code to guess character sets. > True. But they're going to put more faith in something in the standard distribution, assuming it's passed muster. > Ironically, PHPUnit attempts to detect UTF-8 >

Re: [PHP-DEV] IntlCharsetDetector

2016-04-07 Thread Andrea Faulds
Derick Rethans wrote: As you say, it doesn't work properly. As a matter of fact, guessing charsets, like timezones, is not possible. You need to know which charset something is in. If not, you need to address *that* problem. Indeed, 畂桳栠摩琠敨映捡獴! -- Andrea Faulds https://ajf.me/ P.S. Google it.

Re: [PHP-DEV] IntlCharsetDetector

2016-04-07 Thread Bishop Bettini
On Wed, Apr 6, 2016 at 9:18 AM, Sebastian Bergmann wrote: > Am 05.04.2016 um 11:05 schrieb Derick Rethans: > > I would advice against adding this. > > > > As you say, it doesn't work properly. As a matter of fact, guessing > > charsets, like timezones, is not possible. You need to know which > >

Re: [PHP-DEV] IntlCharsetDetector

2016-04-07 Thread Sebastian Bergmann
Am 05.04.2016 um 11:05 schrieb Derick Rethans: > I would advice against adding this. > > As you say, it doesn't work properly. As a matter of fact, guessing > charsets, like timezones, is not possible. You need to know which > charset something is in. If not, you need to address *that* problem.

Re: [PHP-DEV] IntlCharsetDetector

2016-04-05 Thread Derick Rethans
On Mon, 4 Apr 2016, Sara Golemon wrote: > The subject of character set detection (yes, I know, a hard problem to > solve) came up on SO chat, and Niki noticed that we don't yet wrap the > ICU UCharsetDetector API so I volunteered to put something together. > > https://github.com/php/php-src/compa

[PHP-DEV] IntlCharsetDetector

2016-04-04 Thread Sara Golemon
The subject of character set detection (yes, I know, a hard problem to solve) came up on SO chat, and Niki noticed that we don't yet wrap the ICU UCharsetDetector API so I volunteered to put something together. https://github.com/php/php-src/compare/master...sgolemon:intl.charsetdetector The trou