# Reading full HTML code from file

**URL:** https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528
**Category:** Discussion
**Created:** [July 16, 2007, 7:14am UTC](https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528 "2007-07-16T07:14:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 16, 2007, 7:14am UTC](https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528/1 "2007-07-16T07:14:46Z")

</div>

I have a XML file; I transform it to HTML code using XSL in Final buidler

Then I tried to read the content of html file into a variable, and use that as the email body.

But the email body only has the following characters: ÿþ\<

Anything I missed? How should I make it work?

Thanks

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 16, 2007, 7:45am UTC](https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528/2 "2007-07-16T07:45:17Z")

</div>

Nevermind, I figured out. It’s the encoding of the file.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 20, 2009, 5:52am UTC](https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528/3 "2009-01-20T05:52:22Z")

</div>

I'm having the same issue. What encoding did you use?

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 20, 2009, 6:35am UTC](https://www.finalbuilder.com/forums/t/reading-full-html-code-from-file/528/4 "2009-01-20T06:35:19Z")

</div>

Here is how I was able to get it to work for me in case anyone else needs to know.   
  
 Added to my xsl:   
 \<xsl:output method=“html” encoding=“ISO-8859-1” indent=“no”\>\</xsl:output\>   
  
 Changed email action | Message tab settings to   
 Encoding: ISO-8859-1   
 and checked the “Message is HTML formatted.” checkbox.   
  
 My BeforeAction Emal script has:   
  
 Dim objFSO, objTextFile   
 Set objFSO = CreateObject(“Scripting.FileSystemObject”)   
 Set objTextFile = objFSO.OpenTextFile(“C:\Temp\qual\_test\_results\issue.html”, 1, True)   
 Action.Body = objTextFile.ReadAll   
 objTextFile.Close
