From b3dec5832fbbefc25e0efac92476a67130620ce5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 19 Jun 2003 17:46:53 +0000 Subject: Mozilla api change, pfffff 2003-06-19 Marco Pesenti Gritti * embed/mozilla/EphyWrapper.cpp: Mozilla api change, pfffff --- embed/mozilla/EphyWrapper.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'embed/mozilla/EphyWrapper.cpp') diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp index b08447145..367579902 100644 --- a/embed/mozilla/EphyWrapper.cpp +++ b/embed/mozilla/EphyWrapper.cpp @@ -730,7 +730,11 @@ nsresult EphyWrapper::ForceEncoding (const char *encoding) &result); if (NS_FAILED(result) || !mdv) return NS_ERROR_FAILURE; +#if MOZILLA_SNAPSHOT > 8 + result = mdv->SetForceCharacterSet (nsDependentCString(encoding)); +#else result = mdv->SetForceCharacterSet (NS_ConvertUTF8toUCS2(encoding).get()); +#endif return result; } -- cgit