<NME> unicode_string.rb
<BEF> ADDFILE
<MSG> Changes

<DFF> @@ -0,0 +1,15 @@
+# coding: utf-8
+
+require "dm-core/type"
+
+module DataMapper
+  module Types
+    class UnicodeString < DataMapper::Type
+      primitive String
+      
+      def self.load(value, property)
+        value.to_s.force_encoding("utf-8")
+      end
+    end
+  end
+end

Changes