diff options
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |