---
title: "encoding"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/91266-encoding"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Maggan"
published: "2003-11-26T10:03:25.000Z"
updated: "2003-11-26T10:19:44.000Z"
replies: 1
views: 171
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/91266-encoding"
---

# encoding

## #1 — Maggan, 2003-11-26T10:03Z

När jag använder transformNode för att generera html från xml läggs raden
\<META http-equiv="Content-Type" content="text/html; charset=UTF-16"\> till i mitt html-dokument.
I xml- och xsl-dokumentet har jag anget ISO-8859-1 som encoding. Någon som har en idé?

Permalänk: https://www.webforum.nu/p/91266

## #2 — niko, 2003-11-26T10:19Z

> This is not a bug.
> When you use transformNode to fo the transformation, as its syntax
> indicates, it always return BSTR, which is encoded in UTF-16.
> If you want other encoding, you must use transformNodeToObject instead.

[Källa](http://groups.yahoo.com/group/XSLTalk/message/8165)

Permalänk: https://www.webforum.nu/p/1214071

---

Tråden på webben: https://www.webforum.nu/amne/asp/91266-encoding
