Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

343
Views
Why is it that when I put a hyphen(-) in an input, it is sent to the database as a question mark?

For example, when in my input in html i put a "testing - test" and i send this to my database in Oracle the register is like that : "testing ¿ test" . Why is this happening? I'm using javascript and Spring. Maybe is something of the configuration?

var minimoUnaLetra = /[A-Za-zÀ-ÿ\u00f1\u00d10-9]+/
        var denominacionComercial = $("#denominacionComercialTicket").val(); 
        if(denominacionComercial != ""){
            if(!minimoUnaLetra.test(denominacionComercial)){
                toastr.error("La denominación comercial debe contener, por lo menos, una letra o un número.");

                valido = false;
            }
            console.log("ANTES " + denominacionComercial);
            if(denominacionComercial.includes('–')){ 
                denominacionComercial.replace('–','-');
                console.log("DESPUÉS " + denominacionComercial);
            }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!