Questions tagged [encoding]
The encoding tag has no usage guidance.
34
questions
0
votes
0
answers
24
views
How to detect 3rd party app details on experience portal login page?
I have different 3rd party applications that uses Salesforce Connected app to login to their application where Salesforce is OAuth.
I have added those application details on my Experience portal page ...
0
votes
1
answer
84
views
Salesforce Admin and Development
I’ve worked on SF in my previous job for couple of years managing cases. Furthermore,have worked as a Subject Matter Expert. Also, was a part of migration from Classic to Lightning. In a nutshell, ...
1
vote
0
answers
120
views
REST resource Unicode characters not working (form data)
I'm currently developing a Rest Resource that will be able to handle post method into Salesforce.
The request that I get is in form-data(!!!).
It contains Hebrew characters translated into Unicode
(i....
2
votes
1
answer
165
views
Zippex cant create file with Swedish character
I have problem with Zippex encoding. When I create archive with file name 'Check Flät', the name changes to strange symbols.
Code that create attachment:
Zippex sampleZip = new Zippex();
Blob fileData ...
0
votes
1
answer
427
views
Automation Studio - I need Data Extract file UTF8 Without BOM
In our automation we are creating a txt file with all of our unsubscribes and put it on our SFTP server. Now the problem is that the data extract activity in SFMC automation says that the file is ...
0
votes
0
answers
217
views
Issue passing UTF-8 encoded data to data extension through SQL
I have a problem with the data displayed in one field and got specific characters : "Espace Commercial René Coty" rather than "Espace Commercial René Coty"
I tried the formulee
...
1
vote
1
answer
761
views
How to force ANSI Encoding on a generated CSV attachement in apex?
I want to generate a csv attachement and force ANSI encoding how can i do that?
Code to create my attachement:
string rows = 'column1;column2;column3'+'\n'+'a;b;c'
Attachment attachment = new ...
4
votes
1
answer
307
views
sfdx support for utf8
Is it possible to do a soql with sfdx and have the output in utf8 format? I trying extract out data in Thai language but I'm getting unreadable characters. This works fine in data loader. The code ...
0
votes
1
answer
196
views
UTF-8 in Marketing Cloud SQL Queries
Are there any chances to define in what encoding the query result will be?
Let's say I have a standard query:
select field1, field2, field3
from DataExtension
How should the query look like if the ...
0
votes
1
answer
223
views
ContentVersion apex decoding [closed]
we are saving a docx and pdf files in contentversion. But having issue in decoding it back.
Blob.tostring doesnt work as the files encoding is not in the UTF-8 formatting.
Can you please help me ...
1
vote
1
answer
164
views
What is the difference between supported Salesforce, Apex, and Dataloader text encodings?
If I export a file of Custom_Object__c with a Custom_Field__c (developer console and salesforce page layout displayed) value of:
XX – XYZ
I receive an exported CSV with:
XX � XYZ
If I open that ...
1
vote
0
answers
347
views
GET Response containing png image in Marketing Cloud
We are using this api (get method):
https://rapidapi.com/qrcode-monkey/api/custom-qr-code-with-logo
In order to create QR images on the fly when sending emails to our customers from Marketing Cloud.
...
-1
votes
1
answer
383
views
jsonwebtoken in apex or lightning component [duplicate]
I need to generate a jwt with encode jsons, with this estructure:
header.payload.signature
Header (encodeBase64)
Payload (encodeBase64)
Signature (encodeBase64(RSASHA256(Header+Payload)))
String ...
0
votes
1
answer
99
views
Encoding windows-1255
I have created an apex class which created an xml using:
xmlW.writeStartDocument('windows-1255','1.0');
but I get the following error:
Underlying stream encoding 'UTF-8' and input parameter for ...
2
votes
1
answer
7k
views
Salesforce MC - How to data extract in UTF8 to FTP
I'm having problems trying to export a data extension from Salesforce Marketing Cloud to FTP.
I created an Automation to extract this file, but I want to extract in UTF-8, my database only import ...
4
votes
1
answer
6k
views
Marketing Cloud Data Extract into the correct File Encoding format
I have created a Data Extract activity exports a .csv file containing records from my Data Extension.
The file is in the wrong File Format so I have requested Salesforce activate additional encoding ...
3
votes
1
answer
2k
views
Unable to read ANSI file in apex code?
I need to upload a file with ANSI character encoding from a VisualForce page and should be able to read the file and perform actions from Apex class(controller). Now when I upload an ANSI file, a ...
2
votes
1
answer
1k
views
URL Encoding String with just Plus Signs
I am just learning about EncodingUtil.urlEncode(targetString,'UTF-8'); and encoding schemes. targetString will print out something that looks like this:
String targetString =
'...
0
votes
1
answer
2k
views
Trailhead challenge error secure lightning javascript code
In this challenge I have to use securefilter library and securely encode the date.
I have made the changes as follows-
<aura:component controller="LTNG_Creatures_Controller" access="global" ...
1
vote
1
answer
827
views
Japanese character displays in Visualforce template but in PDF it shows question marks (???) [closed]
In my company we use Servicemax managed package. In one of the transactions, we have a visualforce template that generates a report.
When I check it in our visualforce page I see it like this:
But ...
1
vote
1
answer
514
views
URL Rewriting in Lightning to support Classic functionality
I have an Apex logic that checks: On click of New button of Opportunity, if the logged-in user has permission to create records, reconstruct the PageReference with the default url like below:
https://...
7
votes
1
answer
7k
views
Why are there 3 functions to encode in Visualforce?
I'm following the Injection Vulnerability Prevention module on Salesforce Trailhead, and I'm reading about the Visualforce functions to encode data to prevent XSS attacks.
To quote from the module:
...
6
votes
2
answers
2k
views
Emoji Support in Visualforce
I've set up the following test page:
Visualforce Page:
<apex:page controller="Emojis" action="{!Emojis}" >
<apex:form >
<apex:actionPoller interval="5"...
1
vote
2
answers
3k
views
File encoding Data Extract - Marketing Cloud
we exported few files (.CSV, .ZIP) from Marketing Cloud into SFTP folder using Data Extract and File Transfer as activities.
We noticed that files' encoding is 'UCS-2 LE BOM' and not 'UTF-8' as ...
1
vote
1
answer
264
views
Apex Amazon ItemLookup Request
I have tried for quite some time to get past the irritating 'SignatureDoesNotMatch' error that Amazon keeps sending back to me from my webservice request to their API.
First, in case you are very ...
0
votes
2
answers
2k
views
Apex rest response: cyrillic characters encoding issue
[SOLVED] Fixed in Spring Framework:
restTemplate.getMessageConverters()
.add(0, new StringHttpMessageConverter(Charset.forName("UTF-8")));
I have cyrillic characters in response.
I prefer using void ...
5
votes
0
answers
2k
views
How to generate GUID in salesforce? [duplicate]
How do I generate GUID in apex class in salesforce in the following format mentioned(16 bytes or 128 bits)?
BA8D6569-9208-4DBB-9357-A4500838101E
Any suggestions will be appreciated.
Thanks in ...
3
votes
1
answer
2k
views
Encoding used when sending emails through singleemail method
When sending out a single email salesforce encodes the HTML body
As per doc :
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_email_outbound_single.htm#...
2
votes
0
answers
68
views
Encoding a Custom Link for use outside of Salesforce?
I would like to create a custom link to our website using Salesforce data to autofill a form, and then be able to copy and paste the link into an email or other document. It works fine to do that with ...
0
votes
1
answer
248
views
Where are the "==" characters in my base64-encoded value coming from?
I created a utility method TwitterUtil.encodeConsumerKeyAndSecret() to return the encoded credentials needed for Twitter's application-only authentication flow. However, when testing my method using ...
0
votes
1
answer
653
views
First error: invalid character encoding - Apex Job
I have written an apex batch that was working before sendbox refreshing. When I try to run the batch I get this message in the Status Detail:
First error: invalid character encoding
Instead in the ...
6
votes
1
answer
1k
views
Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded
I have a Visual Force component inside a Visual Force Email Template with the intention of producing an HTML email in which the component is reponsible for rendering some of the HTML. What seems to be ...
1
vote
1
answer
868
views
Issue with conditional statement in apex:repeat inside javascript
I am trying to create a map in javascript using apex:repeat tag but it's not working as per expectations.
Below is the VF page and controller I have created :
<apex:page controller="...
2
votes
1
answer
315
views
Exact Target Charset
I send Data via SOAP to Exact Target extension.
Everything work fine, but if I send some characters from another languages I have problems.
I have tried to set line <?xml version="1.0" encoding="...