-
Notifications
You must be signed in to change notification settings - Fork 777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified the examples for mb_convert_kana, mb_detect_encoding, mb_encode_numericentity #4510
base: master
Are you sure you want to change the base?
Conversation
…ode_numericentity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. One point.
string(8) "SJIS-win" | ||
string(5) "ASCII" | ||
]]> | ||
</screen> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I think confuse to put example of output.
The result of mb_detect_encoding
is different in several version. Ref: https://3v4l.org/rf0FG
Because this function is tuning in heuristics. Maybe behavior changes to this function.
@alexdowad Do you have any opinion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really would like that we add some huge warnings that this function is badly named and is far from accurate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SakiTakamachi @Girgias Thanks. Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with the additional language phrasing change.
The name of this function is misleading, it performs "guessing" rather than "detection". | ||
</para> | ||
<para> | ||
The guesses are far from accurate, and cannot use this function to accurately detect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The guesses are far from accurate, and therefore you cannot use this function to accurately detect
reads a little better to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.