Skip to content
Browse files

added utf-8 encoding

  • Loading branch information...
1 parent 0d08a6a commit b564dbd8298194e48359b04172410de11b3724e9 Jakub Kuźma committed May 26, 2009
Showing with 5 additions and 4 deletions.
  1. +1 −1 VERSION
  2. +1 −0 lib/vcard/vcard.rb
  3. +3 −3 vcard.gemspec
View
2 VERSION
@@ -1 +1 @@
-0.1.0
+0.1.1
View
1 lib/vcard/vcard.rb
@@ -682,6 +682,7 @@ def Vcard.decode(card)
string = string.unpack('v*').pack('U*')
end
+ string.force_encoding(Encoding::UTF_8)
entities = Vpim.expand(Vpim.decode(string))
# Since all vCards must have a begin/end, the top-level should consist
View
6 vcard.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{vcard}
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jakub Kuźma"]
@@ -12,7 +12,6 @@ Gem::Specification.new do |s|
"LICENSE",
"README.rdoc"
]
-
s.files = [
".document",
".gitignore",
@@ -29,7 +28,8 @@ Gem::Specification.new do |s|
"lib/vcard/vcard.rb",
"test/field_test.rb",
"test/test_helper.rb",
- "test/vcard_test.rb"
+ "test/vcard_test.rb",
+ "vcard.gemspec"
]
s.homepage = %q{http://github.com/qoobaa/vcard}
s.rdoc_options = ["--charset=UTF-8"]

0 comments on commit b564dbd

Please sign in to comment.
Something went wrong with that request. Please try again.