8 votes
Accepted

Why are there 3 functions to encode in Visualforce?

Note that there are four encoding functions, not three. You forgot about URLENCODE. Here's an article that would really help you to read: Unescaped Output and Formulas in Visualforce Pages. If you ...
Adrian Larson's user avatar
  • 149k
8 votes
Accepted

Unable to read ANSI file in apex code?

I hacked a Apex Charset encoder/decoder util, check gist Charset.cls /** * Convenience method that decodes bytes in charset into a string of Unicode * characters. * <p> * @param input ...
nxtr's user avatar
  • 96
7 votes
Accepted

Marketing Cloud Data Extract into the correct File Encoding format

I did a file export from a dataextension like this: DataExtract Activity1: Pattern: TEST_SAFEHOUSE_%%Day%%%%Month%%%%Year%%.csv ExtractType: Data Extension Extract Column Delimiter: ; Has Column ...
Johannes Schapdick's user avatar
6 votes
Accepted

URL Encoding String with just Plus Signs

Consider using PageReference instead: Lead l = new Lead(Est_Credit_Score__c='999', Phone='(999) 555-1212', FirstName='Brian', LastName='Fear', email='[email protected]')...
sfdcfox's user avatar
  • 481k
5 votes
Accepted

Apex rest response: cyrillic characters encoding issue

Unfortunately I couldn't reproduce your bug, may be you've missed something, or it's 3rd party problem. Please find my example below: global class SalesOrder { global String name; //contains ...
Ilya Lepesh's user avatar
  • 4,105
4 votes
Accepted

HttpRequest to SAP encoding $ and space caracters

The $ doesn't seem to cause any issues in a quick test I just performed. I created an endpoint at beeceptor.com, added a remote site setting and then ran this code via execute anonymous in my scratch ...
Matt Lacey's user avatar
  • 25.3k
4 votes

Zippex cant create file with Swedish character

Checking out the specifications, the file name needs to be in ASCII format. This is what's causing the problem you're seeing. To set the UTF-8 file name, you need to specify an Extra Field. 4.6.9 -...
sfdcfox's user avatar
  • 481k
4 votes
Accepted

Emoji Support in Visualforce

I solved this problem by using urlencoding. Below is a working example. What I do here is, first I encoded the Case Subject in Condroller using EncodingUtil.URLENCODE then again decode the value in VF ...
Saroj Bera's user avatar
  • 14.6k
3 votes

Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded

I hope this should work: <apex:outputText value="{!MessageContent}" escape="false"/> Have you tried this?
Patlatus's user avatar
  • 16k
3 votes

sfdx support for utf8

I figured it out. This has nothing to do with sfdx. It's the setting in powershell. This works: [Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding sfdx force:data:soql:query -u ...
Chad H.'s user avatar
  • 73
2 votes

Salesforce Admin and Development

For the admin certification, it sounds like you might be nearly ready. Make sure you go through the Admin Beginner trailhead modules first. For the PD1, you might want to start off with lower level ...
sfdcfox's user avatar
  • 481k
2 votes
Accepted

What is the difference between supported Salesforce, Apex, and Dataloader text encodings?

All strings in Apex and on the Salesforce platform are encoded in UTF-8, full stop. All Salesforce APIs accept input in UTF-8. If you upload a text file that is not UTF-8 into a File object and ...
David Reed's user avatar
  • 92.1k
2 votes
Accepted

jsonwebtoken in apex or lightning component

The problem here is that your privateKey —what you have named "publicKey"— needs to be in PKCS #8 format. Working Sample In your code, if you use this sample PKCS #8 compliant key you should get a ...
Ideasforce's user avatar
  • 1,187
2 votes
Accepted

Salesforce MC - How to data extract in UTF8 to FTP

Here are some screenshots of an UTF8 DataExtract Activity:
Johannes Schapdick's user avatar
2 votes

Apex rest response: cyrillic characters encoding issue

I also tried with a basic example of Rest service and couldn't reproduce your issue. I am able to see the cyrillic characters in the workbench response. Can you please let me know how you are calling ...
Saroj Bera's user avatar
  • 14.6k
2 votes

UTF-8 in Marketing Cloud SQL Queries

No, there aren't - SQL activities in Marketing Cloud are based on SQL Server 2016 capabilities and SQL Server 2016 doesn't support UTF-8.
zuzannamj's user avatar
  • 14.3k
1 vote

Automation Studio - I need Data Extract file UTF8 Without BOM

You can ask Salesforce support to provision an additional Data Extract to your account. There are multiple ones available, which are not implicitly shown in Automation Studio, and there for sure is ...
Lukas Lunow's user avatar
  • 20.5k
1 vote

How to force ANSI Encoding on a generated CSV attachement in apex?

You can't. Salesforce Apex always treats strings as UTF-8 and has no functionality for working with or converting between text encodings whatsoever. While you can implement gimmicky conversions in ...
David Reed's user avatar
  • 92.1k
1 vote

ContentVersion apex decoding

DOCX and PDF are not "encoded" at all--they are binary data formats. You won't be able to easily read these files formats without implementing relevant file readers. DOCX requires a ZIP ...
sfdcfox's user avatar
  • 481k
1 vote

Japanese character displays in Visualforce template but in PDF it shows question marks (???)

There are two things would apply here. From Fonts Available When Using Visualforce PDF Rendering: Arial Unicode MS, Helvetica, Times and Courier. These rules apply to server-side PDF rendering. ...
crmprogdev's user avatar
  • 40.9k
1 vote

URL Rewriting in Lightning to support Classic functionality

Lightning data service (though still in developer preview and super involved) is meant to solve this Loading a Record
Matthew McKinley's user avatar
1 vote

File encoding Data Extract - Marketing Cloud

You can ask to the support (via ticket) to enable the tar.gz compression. Note: it will change the date formatting of the extracted data too though.
sdmc01's user avatar
  • 129

Only top scored, non community-wiki answers of a minimum length are eligible