Skip to content

Commit

Permalink
Merge pull request #1096 from yenshirak/propshaft-fix
Browse files Browse the repository at this point in the history
Fix Propshaft encoding issue
  • Loading branch information
unixmonkey committed Jan 23, 2024
2 parents 0d056ea + 0566afc commit 9221f6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [master branch] - Unreleased
### Breaking Changes

### Fixes
- [Fix Propshaft encoding issue](https://github.com/mileszs/wicked_pdf/pull/1096)

## [2.7.0]
### New Features
- [Support Shakapacker 7](https://github.com/mileszs/wicked_pdf/pull/1067)
Expand Down
2 changes: 1 addition & 1 deletion lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def read_asset(source)
IO.read(pathname)
end
else
find_asset(source).to_s
find_asset(source).to_s.force_encoding('UTF-8')
end
end

Expand Down

0 comments on commit 9221f6d

Please sign in to comment.