Skip to content

Commit

Permalink
Better place to force the note's contents encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
threeplanetssoftware committed Dec 16, 2024
1 parent ad1412a commit 8fa0067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AppleNote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def initialize(z_pk, znote, ztitle, zdata, creation_time, modify_time, account,
@primary_key = z_pk
@note_id = znote
@title = ztitle
@compressed_data = zdata
@compressed_data = zdata.force_encoding("UTF-8")
@creation_time = convert_core_time(creation_time)
@modify_time = convert_core_time(modify_time)
@account = account
Expand Down

0 comments on commit 8fa0067

Please sign in to comment.