0

This is the way the name shows up in the UI

But the name is coming from the database where it is stored corectly, as Amelié

index.js file:

<div>
              <Modal
                isOpen={Overlay}
                style={customStyles}
                contentLabel="modal"
              >
                <div className="download--content">
                  <div id="download-title">Please make sure Information is Correct...</div>
                  <form id="download-form" onSubmit={(event) => this.handleSubmit(event)}>
                    <div className="product-info">
                      <Input
                        errorMessage='Please enter a valid Street Address'
                        error={cfcDeclaration.companyAddress1Error}
                        title="Street Address"
                        type="text"
                        name="Street Address"
                        value={typeof selectedCompany == 'undefined' ? "" : selectedCompany.streetAddress1}
                        disabled='edit'
                 

What is the best way to correct this so the "é" and other symbols are displayed as they are in the database?

crytodac
  • 11
  • 1
  • maybe this could help https://stackoverflow.com/questions/6477714/why-my-page-cannot-display-%C3%A9-instead-showing – lastr2d2 Feb 19 '21 at 01:44
  • Looks like an encoding problem. Please show us all the code along the path from the database to the text field, especially the database connection and the http response encoding. – Bergi Feb 19 '21 at 01:46
  • Is `` in your ``? Make sure you save the file as `UTF-8` as well. – StackSlave Feb 19 '21 at 01:47
  • Yes, I tried with both utf-8 and utf-16, no luck.. – crytodac Feb 19 '21 at 01:55

1 Answers1

0

Try using BLOB as the datatype for that specific column, It allows special characters.

Also if your browser is having issues displaying that text on its own, try using this snippet inside of your head tags.

<meta charset='UTF-8'/>

or

<meta charset='UTF-16'/>

depends on what you expect the user to enter

nullcoder
  • 103
  • 2
  • 11