diff options
author | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-07-25 14:51:42 -0400 |
---|---|---|
committer | Cliff Pruitt <cliff.pruitt@cliffpruitt.com> | 2019-07-26 12:18:01 -0400 |
commit | 369daa530dd9db7bbba79b8c75012e0fa84c9f48 (patch) | |
tree | 2f1acc6f4148dd0f39664c7a6ab703d3f5069e08 /tasks/release.rb | |
parent | 0cdaa38dd190cae1f13f0f22ab3d1002b6a82081 (diff) | |
download | rails-369daa530dd9db7bbba79b8c75012e0fa84c9f48.tar.gz rails-369daa530dd9db7bbba79b8c75012e0fa84c9f48.tar.bz2 rails-369daa530dd9db7bbba79b8c75012e0fa84c9f48.zip |
Handle US-ASCII strings with invalid characters in transliterate
US-ASCII is a subset of UTF-8 so we can temporarily convert US-ASCII strings to UTF-8 to perform the transliteration. After we've converted characters to ASCII representations, we can set the encoding back to US-ASCII to return the same encoding we accepted.
Diffstat (limited to 'tasks/release.rb')
0 files changed, 0 insertions, 0 deletions