Sha256: 56a774e7a7967ca6429780f365d33d1bd6356a887a57106df67d4fc9f5218d72
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
require 'rubygems' require 'spec' dir = File.dirname(__FILE__) require File.expand_path("#{dir}/spec_helper") require File.expand_path("#{dir}/../lib/fjson") describe "String when supporting unicode and KCODE is not utf8 json" do setup do JSON.support_unicode = true $KCODE = "" end it "should let high values pass through when " + "supporting unicode and KCODE is not UTF8" do val = [0xcf].pack("U") JSON.utf8_to_json(val).should == "\303\217" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fjson-0.1.2 | spec/string_when_supporting_unicode_and_kcode_is_not_utf8_json_spec.rb |