Questions tagged [character-encoding]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

Error: Incorrect parameter type for operator '+'. Expected Text, received Number

I need to add a special character for a field on VF page and it's throwing an exception. Error: Incorrect parameter type for operator '+'. Expected Text, received Number Can anyone help me with ...
0
votes
1answer
32 views

Handle Special characters like ° (degree)

We are trying to import data with name "6400L -37° JIC SAE Flare Male x SAE O-Ring Boss ORB Male Adapter Long" but on inserting data we got value in sfdc as � (Special char). We have enabled UTF-8 ...
0
votes
0answers
27 views

ReRendering Output Panel with MHTML String Fails

I am rerendering EmailMessage HTML Bodies onto visualforce pages. For most emails this is not a problem, however for one email the rerender never completes. Research into this suggests some sort of ...
0
votes
1answer
99 views

Excel download characters got corrupted in lightning component?

Using lightning component i want to download the excel file with some contacts. I am able to get the contacts. But file downloading if my contact name is in other language like Chinese/Japanese, the ...
2
votes
1answer
450 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 ...
0
votes
2answers
334 views

Retrieving VersionData with standard REST API

I am trying to retrieve VersionData with a standard REST API call from a VisualForce Page a then upload it to a S3 bucket but end up with corrupted files. I believe this is an encoding problem on the ...
2
votes
1answer
370 views

Save text in Document object of Salesforce in ISO-8859-1/ANSI/ASCII format

Text in Document object of salesforce are being saved in UTF-8 now, but I need to save it in ISO-8859-1/ANSI format. When I do the following, and try to download the document and look at it's ...
1
vote
2answers
822 views

EROR: BLOB is not a valid UTF-8 string

We have a custom REST api that throws an error when ever we have a diacritic character as part of the JSON request. For example if the character "é" is anywhere in the JSON it errors when we convert ...
2
votes
1answer
482 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 = '...
1
vote
1answer
75 views

Uploading CSV with accented/special Characters using VFpage

I'm currently working on a vfpage that can upload records using CSVs similar to this project. But, the records in the CSV may contain accented characters from spanish alphabet. So, when I attempt to ...
4
votes
0answers
584 views

Charset for Platform Event not UTF-8?

When trying to publish a platform event from our middleware solution (Boomi) to our salesforce instance, I'm receiving a 400/Bad request (this was intermittent, as some would process without issue). ...
0
votes
1answer
396 views

Remove special character in javascript for a dynamic value

I have a javascript method $(document).ready(function() { pageViewed('{!currentName} - Detail Page'); Here currentName can have special characters like a single quote. Is there ...
3
votes
0answers
235 views

Another STRING_TOO_LONG problem, HTML text into a rich text area

I have a custom object with a rich text field, max size 131,072. Using the force.com REST API, attempting to add an entry with text size larger than about 63,700 characters (I have not pinpointed the ...
0
votes
1answer
526 views

VF Page export as CSV with asian file name

I have VF Page and I manage to export it as CSV file. However, when I try to name the file with asian characters (japanese, chinese etc ...) , it does not show. VF Page: <apex:page controller="...
0
votes
0answers
31 views

Not able view the Japanese characters as an attachment in Case

In my org , the Email to Case is handled by Apex Email Service. Whenever i create the record by sending email and In the case record , I'm able to see the Japanese character in the detail page. But in ...
2
votes
0answers
256 views

How to add accents or special characters in sender profile from name

Does anyone have any experience using accented letters in the from name in a sender profile, for example, a French name with an accented e. I've tried inserting the ASCII character code in the sender ...
1
vote
2answers
352 views

Special characters in static resource

The nordic characters æøå are displayed as question marks in JS static resource after reopening the file in the Developer Console. An alert box with these characters will also display as question ...
1
vote
4answers
1k views

Integer to ASCII conversion

I'm trying to convert an integer into its corresponding ascii value but getting different result than what I get in java. Java int c = 5032; char c1 = (char)c; System.out.print('==>' + c1); //...
2
votes
1answer
622 views

Strings concatenation and one character size

Short prestory. Typical problem: you have a lot of small string and you want to concatenate them all in one big string. The code like for(Integer i = 0; i < smallStringsSize; i++){ bigString +=...
1
vote
0answers
325 views

How to size database columns for storing Salesforce fields; length or bytelength?

All fields in Salesforce have two lengths; a unicode character length and bytes length; our org uses UTF-8. We're sizing tables/columns in Oracle to accomodate our data from the cloud, my question is ...
2
votes
2answers
1k views

decode Special Character in Angular + Visualforce

My Object label is D & B Company, this is stored in a list at some place When it comes to visualforce page in angular code, it is showing D&amp;B Company How can handle such type of special ...
2
votes
0answers
120 views

Importing articles with special characters

I have to import some articles in my org that contain special characters, such as: à,è,ì,ò,ù... But when the import process ends, special characters aren't correctly displayed. I did a massive ...
9
votes
1answer
631 views

Convert application/octet-stream in E-mail Processing class

Context: e-mails are sent with text attachments from a Dynamics SL/SQL Database to a Salesforce e-mail processor. The text attachments contain a formatted file with data to be processed and imported ...
10
votes
2answers
2k views

VisualForce MultiLine UTF-8 CSV

Goal is to generate a CSV file from VF that contains UTF-8 chars and multiline text fields. All users are Mac users. Controller public class MultiLineUtf8CsvMac { public String utf8Bom {get {...
0
votes
1answer
2k views

Error: Unrecognized base64 character

Hey I am trying to get the access token to GA from Salesforce but following the execution it gives me the following error: System.StringException: Unrecognized base64 character: - This is the ...
5
votes
1answer
1k views

Subject line Chinese Character issue in Salesforce

Thanks in advance, I am sending an email from IBM Notes to Salesforce queue(Ex:test@test.com) with Subject line Chinese Character and the body content also Chinese character only. But after creating ...
2
votes
2answers
2k views

JSON Serialize returning html entities that are not encoded

I am getting data from a custom field(Article__c) on a Knowledge Article which contains HTML data. When I serialize this data and return it to a VF page I am getting HTML characters that should be ...
1
vote
0answers
190 views

Encoding Issue? HTTPPost ampscript function response insert into data extension

I'm using the HTTPPost ampscript function to send a Json payload to an endpoint and receive a Json response back. I get the OK response back, but the Json response contains Chinese, Japanese and other ...
4
votes
1answer
2k views

Reading a pdf file in apex controller

I am trying to read a pdf file that is stored in Static resources.The body of the pdf comes in a Blob format, but I am not able to get the blob back to the readable format.How do I accomplish it.
4
votes
1answer
3k views

Storing JSON response in SF text field gives '&quot;' instead of double quotes (")

For debug purposes, I'm trying to write the JSON body returned from an HTTP callout into an SF text area field. My problem is, despite the JSON body being stored as a string variable, and despite it ...
0
votes
1answer
287 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 ...
0
votes
1answer
1k views

Use ASCII code to insert a line break in a Tooltip

I need to add a line break in a tooltip. I tried using ASCII character "&#13;" to insert a new line feed. This works like a charm in normal HTML page. It even works just fine when you add it ...
0
votes
0answers
101 views

What cause of unknown characters appearing to your visualforce page?

I don't know If anyone has experienced this, while I was making some changes to my visualforce page, saved it and reloaded the page, I had exception that there were unknown characters in my ...
1
vote
1answer
2k views

Issue passing UTF-8 encoded data to data extension

I'm having issues sending UTF-8 data correctly to a data extension. When I try to send values such as ジョシュ, it ends up being saved as ã¦ã©ã¼ã©ã¼ ã¸ã§ã·ã¥. I tried to convert the encoding before ...
3
votes
1answer
118 views

Force.com IDE (Summer'14 release) - character set issue

I have the following issue since using the latest version of Force.com IDE (31.0.0.201406301722) in our Summer'14 sandbox: In the force.com IDE my code shows as follows: String test = 'Zuständigkeit'...
9
votes
1answer
619 views

How to prevent unwanted web-to-lead character conversion

Arabic user data that was captured with our web-to-lead form occasionally ends up Mojibake in our lead table. A user would type something like: الإعلان العالمى لحقوق الإنسان When we retrieve the ...