Changeset 5432
- Timestamp:
- 11/05/06 19:03:37 (2 years ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/json/encoders/core.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r5414 r5432 1 1 *SVN* 2 3 * Fix unicode JSON regexp for Onigurama compatibility. #6494 [whitley] 2 4 3 5 * update XmlSimple to 1.0.10. Closes #6532. [nicksieger] trunk/activesupport/lib/active_support/json/encoders/core.rb
r4787 r5432 33 33 }.gsub(/([\xC0-\xDF][\x80-\xBF]| 34 34 [\xE0-\xEF][\x80-\xBF]{2}| 35 [\xF0-\xF7][\x80-\xBF]{3})+/ ux) { |s|35 [\xF0-\xF7][\x80-\xBF]{3})+/nx) { |s| 36 36 s.unpack("U*").pack("n*").unpack("H*")[0].gsub(/.{4}/, '\\\\u\&') 37 37 } + '"'