forked from sporkmonger/addressable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use encode! instead of force_encoding where applicable
Calling force_encoding doesn't actually change anything about the string, it just changes what the string considers its encoding to be, allowing you to end up with strings with invalid encodings. There are some invocations in Addressable::URI where this seems intentional (followed by some g_sub'ing) but at least at the output stage it seems like the strings should be converted and the non-utf-8 bytes/characters removed
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters