Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

Unexpected character ('�' (code 65533 / 0xfffd)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

I am making a POST call and receiving a 200, but getting the below error when I try to parse the response. The call works in Postman and I can read the JSON response. I am guessing its related to the ...
Cincopation's user avatar
1 vote
1 answer
123 views

HttpRequest to SAP encoding $ and space caracters

I have a wierd problem: I'm calling SAP from salesforce apex and I have trouble with one of my request. This one is working. request.setEndpoint(authentification_details.Webservice_enpoint__c+'/...
Julien Souchi's user avatar
0 votes
1 answer
109 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, ...
Rashmi's user avatar
  • 1
1 vote
0 answers
169 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....
Yaac0's user avatar
  • 165
2 votes
1 answer
177 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 ...
Anatolii Ivanov's user avatar
0 votes
1 answer
595 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 ...
Ronald's user avatar
  • 1
0 votes
0 answers
290 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 ...
Anne-Sophie's user avatar
1 vote
1 answer
1k 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 ...
collin's user avatar
  • 83
4 votes
1 answer
398 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 ...
Chad H.'s user avatar
  • 73
0 votes
1 answer
245 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 ...
Kirill Rozhkov's user avatar
0 votes
1 answer
243 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 ...
Anu2112's user avatar
1 vote
1 answer
181 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 ...
S.B.'s user avatar
  • 2,081
1 vote
0 answers
419 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. ...
Barak's user avatar
  • 133
-1 votes
1 answer
447 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 ...
Rodolfo's user avatar
  • 326
0 votes
1 answer
111 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 ...
Yael's user avatar
  • 1
2 votes
1 answer
8k 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 ...
Fabm's user avatar
  • 23
4 votes
1 answer
7k 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 ...
Deployment Failure's 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 ...
Divya's user avatar
  • 91
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 = '...
Olivia's user avatar
  • 3,461
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" ...
mvk1991's user avatar
  • 555
1 vote
1 answer
897 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 ...
Antonio L's user avatar
1 vote
1 answer
517 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://...
sanchit's user avatar
  • 918
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: ...
user avatar
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"...
user avatar
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 ...
cmbob's user avatar
  • 624
1 vote
1 answer
270 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 ...
Konnor McDowell's user avatar
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 ...
Vladyslav K's user avatar
  • 2,743
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 ...
sfdc5000's user avatar
  • 247
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#...
Rao's user avatar
  • 16.7k
2 votes
0 answers
71 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 ...
Adrian's user avatar
  • 133
0 votes
1 answer
270 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 ...
Marty C.'s user avatar
  • 4,449
0 votes
1 answer
794 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 ...
MarcoDev's user avatar
  • 181
6 votes
1 answer
2k 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 ...
IanT8's user avatar
  • 585
1 vote
1 answer
877 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="...
S.Sharma's user avatar
  • 1,637
2 votes
1 answer
320 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="...
sergio's user avatar
  • 123