function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sgoldberRHsgoldberRH 

Visualforce Page language encoding causing wrong field labels

I have a visualforce page which is being rendered as a PDF.  I have set the language to "utf-8" , when I do this it causes only the english field labels to be displayed even if the user has their language set to something else.  If I do not set the language of the page to "utf-8"  Chinese Characters do not render.   Any suggestions.

 

 

   ...the page tag...

 

<apex:page standardController="SFDC_Channel_Account_Plan__c" extensions="ext_Objective,revenueDetails,MDFCalculate,goalInfo" showHeader="false" renderAs="pdf" language="utf-8">

 

 ....example field label...

<apex:outputLabel value="{!$ObjectType.SFDC_Channel_Account_Plan__c.Fields.Name.label}"/>

 

 

eoateseoates
UTF-8 is a charset, not a language. The language attribute of the apex:page component expects a language code ("en" for English, "es" for Spanish, "fr" for French, etc.). I don't know the exact solution to your problem, but perhaps this can get you started down the right path.