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 ...
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 ...
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 ...
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]')...
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 ...
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 ...
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 -...
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 ...
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?
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 ...
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 ...
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 ...
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 ...
2
votes
Accepted
Salesforce MC - How to data extract in UTF8 to FTP
Here are some screenshots of an UTF8 DataExtract Activity:
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 ...
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.
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 ...
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 ...
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 ...
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. ...
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
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
encoding × 35apex × 12
marketing-cloud × 8
visualforce × 6
character-encoding × 4
lightning × 3
javascript × 2
community × 2
api × 2
webservices × 2
sql × 2
automationstudio × 2
attachment × 2
data-export × 2
csv × 2
data-extract × 2
encodingutil × 2
url-encode × 2
lightning-aura-components × 1
rest-api × 1
ampscript × 1
salesforcedx × 1
lightning-experience × 1
batch × 1
query × 1