Skip to content

Commit

Permalink
Fix announcement content in Japanease
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta24 committed Feb 2, 2020
1 parent d84217f commit 3639487
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ final class AnnouncementCell: UITableViewCell {
titleLabel.text = announcement.title
contentTextView.attributedText = { content in
guard
let data = content.data(using: .utf8),
let data = content.data(using: .unicode),
let attributedString = try? NSMutableAttributedString(data: data, options: [.documentType: NSAttributedString.DocumentType.html], documentAttributes: nil)
else {
return nil
Expand Down

0 comments on commit 3639487

Please sign in to comment.