Questions tagged [encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
37 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....
user avatar
  • 102
2 votes
1 answer
85 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 ...
user avatar
0 votes
0 answers
83 views

LWC escaping special character in Apex

I am trying to pass '|'(pipe character) from lwc to apex or even trying to use pipe character in apex by calling that method from lwc. But LWC not letting me use pipe character or not letting me ...
user avatar
0 votes
0 answers
87 views

How to encode string with Special and French characters

I have a problem. I am deploying component Layout on some org. It has trouble with name encoding and decoding. Example how it should works: 1 component The name of the component: Case Layout Some\\// ...
user avatar
0 votes
1 answer
102 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 ...
user avatar
  • 1
0 votes
0 answers
43 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 ...
user avatar
0 votes
1 answer
323 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 ...
user avatar
  • 73
4 votes
1 answer
148 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 ...
user avatar
  • 73
0 votes
1 answer
116 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 ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
1 vote
1 answer
114 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 ...
user avatar
  • 1,858
1 vote
0 answers
211 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. ...
user avatar
  • 213
-1 votes
1 answer
248 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 ...
user avatar
  • 150
0 votes
1 answer
55 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 ...
user avatar
  • 1
2 votes
1 answer
4k 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 ...
user avatar
  • 23
4 votes
1 answer
5k 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 ...
user avatar
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 ...
user avatar
  • 61
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 = '...
user avatar
  • 3,181
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" ...
user avatar
  • 515
1 vote
1 answer
713 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 ...
user avatar
1 vote
1 answer
497 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://...
user avatar
  • 918
6 votes
1 answer
6k 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: ...
user avatar
6 votes
2 answers
1k 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"...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
  • 584
1 vote
1 answer
247 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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 2,643
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 ...
user avatar
  • 247
3 votes
1 answer
1k 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#...
user avatar
  • 16.5k
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 ...
user avatar
  • 133
0 votes
1 answer
207 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 ...
user avatar
  • 4,291
0 votes
1 answer
518 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 ...
user avatar
  • 171
5 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 ...
user avatar
  • 575
1 vote
1 answer
836 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="...
user avatar
  • 1,607
2 votes
1 answer
311 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="...
user avatar
  • 123