@@ -474,7 +474,7 @@ class WebpageSnapshotTests: SnapshotTestCase {
474474
475475 func test_DocCTemplate( ) throws {
476476 let doccTemplatePath = fixturesDirectory ( ) . appendingPathComponent ( " docc-template.html " ) . path
477- let doccHtml = try String ( contentsOfFile: doccTemplatePath)
477+ let doccHtml = try String ( contentsOfFile: doccTemplatePath, encoding : . utf8 )
478478 let archive = DocArchive ( name: " archive1 " , title: " Archive1 " )
479479 let processor = try XCTUnwrap ( DocumentationPageProcessor ( repositoryOwner: " owner " ,
480480 repositoryOwnerName: " Owner Name " ,
@@ -501,7 +501,7 @@ class WebpageSnapshotTests: SnapshotTestCase {
501501
502502 func test_DocCTemplate_outdatedStableVersion( ) throws {
503503 let doccTemplatePath = fixturesDirectory ( ) . appendingPathComponent ( " docc-template.html " ) . path
504- let doccHtml = try String ( contentsOfFile: doccTemplatePath)
504+ let doccHtml = try String ( contentsOfFile: doccTemplatePath, encoding : . utf8 )
505505 let archive = DocArchive ( name: " archive1 " , title: " Archive1 " )
506506 let processor = try XCTUnwrap ( DocumentationPageProcessor ( repositoryOwner: " owner " ,
507507 repositoryOwnerName: " Owner Name " ,
@@ -532,7 +532,7 @@ class WebpageSnapshotTests: SnapshotTestCase {
532532
533533 func test_DocCTemplate_multipleVersions( ) throws {
534534 let doccTemplatePath = fixturesDirectory ( ) . appendingPathComponent ( " docc-template.html " ) . path
535- let doccHtml = try String ( contentsOfFile: doccTemplatePath)
535+ let doccHtml = try String ( contentsOfFile: doccTemplatePath, encoding : . utf8 )
536536 let archive1 = DocArchive ( name: " archive1 " , title: " Archive1 " )
537537 let archive2 = DocArchive ( name: " archive2 " , title: " Archive2 " )
538538 let processor = try XCTUnwrap ( DocumentationPageProcessor ( repositoryOwner: " owner " ,
0 commit comments