aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/basic_encoding_spec.rb
Commit message (Collapse)AuthorAgeLines
* convert_string_to_utf8 returns struct of string and scrubbing status.Louise Crow2015-06-22-8/+15
|
* Round trip through utf-16 to clean utf-8 stringLouise Crow2015-06-22-3/+2
| | | | | As noted in the ruby docs (http://ruby-doc.org/core-1.9.3/String.html#method-i-encode), any conversion from an encoding to the same encoding is a no-op, covert it first to utf-16.
* Merge branch 'force-filenames-to-utf8' into rails-3-developLouise Crow2015-05-28-1/+56
|\
| * Fix typoLouise Crow2015-05-15-1/+1
| |
| * Add method for forcing strings to valid utf-8Louise Crow2015-05-14-0/+55
| | | | | | | | | | Try likely conversions but if that fails, just replace the characters that are invalid utf-8.
* | Add source file encoding for all ruby files.Louise Crow2015-05-15-1/+1
|/ | | | | | This is important under ruby 1.9 in order to determine the encoding that will be used for new strings created in the code in the file.
* needs _spec.rb to be run by `rake spec`Rowan Crawford2014-03-01-0/+157