Domino 9 und frühere Versionen > ND7: Entwicklung

Richtextfeld HTML-Part nicht in us-ascii sondern utf-8 ausgeben

(1/3) > >>

LisaS:
Hallo,
gibt es eine Möglichkeit den in us-ascii gespeicherten html-part in utf-8 auszugeben, oder dem Richtext generell das utf-8 aufzuzwingen?

Grüße
Hitcher

LisaS:
...ich habe mal den Teil rausgesucht in dem ich gerne UTF-8 anstelle von us-ascii haben möchte:

--- Code: ---Function GetMultipartMime (mime As NotesMIMEEntity) As String
Dim child As NotesMIMEEntity
Dim mText As String
Dim boundary As String
Dim crlf As String

crlf = Chr(13) & Chr(10)
mText = mText & mime.Headers & crlf & crlf
boundary = GetBoundary(mime.Headers)

        mText = mText & mime.ContentAsText & crlf
Set child = mime.GetFirstChildEntity
While Not(child Is Nothing)
mText = mText & boundary & crlf
mText = mText & GetMultipartMime(child)
Set child = child.GetNextSibling
Wend

If (Len(boundary) > 0) Then
mText = mText & boundary & "--" & crlf
End If

GetMultipartMime = mText
End Function
--- Ende Code ---
wie und wo kann ich eine formatierung nach utf-8 durchführen?
bis jetzt bekomme ich umlaute in dieser Form präsentiert:
Ö -> =D6
Ü -> =DC
Vieleicht hat ja jemand ne Idee...

Nice Weekend
Hitcher

m3:
Das ist quoted-printable encoding. Das sollte aber in dem Mime-Header angeführt werden.

Siehe auch notesMIMEEntity.DecodeContent( )

LisaS:
Verwirrt??
Hier ist die Ausgabe des oberen Scriptes:

--- Code: ---Content-Type: multipart/related; boundary="=_related 004D5E07C12574DC_="

This is a multipart message in MIME format.

--=_related 004D5E07C12574DC_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><tt><font size=3D2>&nbsp;=DC =D6 =C4 =FC =F6 =E4</font></tt>
<br><img src=3Dcid:=5F1=5F05FE4A8405FE469C004D5E06C12574DC>

--=_related 004D5E07C12574DC_=
Content-Type: image/gif
Content-ID: <_1_05FE4A8405FE469C004D5E06C12574DC>
Content-Transfer-Encoding: base64
.
.
.
--- Ende Code ---
Jetz sehe ich da ISO-8859-1 dann sollte doch 
--- Code: ---Ü Ö Ä ü ö ä
--- Ende Code ---
statt
--- Code: ---=DC =D6 =C4 =FC =F6 =E4
--- Ende Code ---
angezeigt werden, oder liegt das am quoted-printable?

m3:
Ich schreibe "ENCODING" und "QUOTED-PRINTABLE". Was war daran nicht verständlich?

--- Zitat -----=_related 004D5E07C12574DC_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
--- Ende Zitat ---


Das Charset (ISO-8859-1, US-ASCII, UTF-8, ...) hat damit nix zu tun. Du musst Dich zuerst mal drum kümmern, dass Du den Inhalt DECODED (entschlüsselt) bekommst.

Erst dann kannst Du Dich um eine ev. notwendige Konvertierung in ein anderes Charset kümmern.

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln