Skip to content

Commit 8fa0067

Browse files
Better place to force the note's contents encoding
1 parent ad1412a commit 8fa0067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AppleNote.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def initialize(z_pk, znote, ztitle, zdata, creation_time, modify_time, account,
115115
@primary_key = z_pk
116116
@note_id = znote
117117
@title = ztitle
118-
@compressed_data = zdata
118+
@compressed_data = zdata.force_encoding("UTF-8")
119119
@creation_time = convert_core_time(creation_time)
120120
@modify_time = convert_core_time(modify_time)
121121
@account = account

0 commit comments

Comments
 (0)