Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9233481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:33:49+00:00 2026-06-18T06:33:49+00:00

I am developing a web application for a french client. Now am really confused

  • 0

I am developing a web application for a french client. Now am really confused about the french character validation in PHP and Javascript too.

I would like to allow alphanumeric and special characters : é è ê î ï ô à ç , . #.

This is the PHP code I am using for alphanumeric and normal character validation

$aValid = array(' ', ' ','   ','    ','     ','-','.',',','#');
    if(!ctype_alnum(str_replace($aValid, '', $str))) {
        return false;
    } 
    else
        return true;

Please help me to include the validation of special characters : é è ê î ï ô à ç , . # in this code. I am also confused about the validation in javascript too. It is UTF-8 encoded so can I directly use the special characters in it?

Thanks in advance,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:33:51+00:00Added an answer on June 18, 2026 at 6:33 am

    I would use regular expressions for such tasks:

    return preg_match("/^[a-z\déèêîïôàç,.#]+$/ui", $str);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web application using PHP,Smarty for a french client. I am
I'm currently developing a web application based on jQuery Mobile. I would like to
I am developing a web application. I would like to extend my error messages
I'm developing web application on python. But the client wants a tool that exports
I have being developing web application for well over 4 years now, and am
I am developing a web application about statistics, so I am using the library
I am developing a web application (using classic asp for now) that needs to
my background: i've been developing web applications using php and javascript for the past
Recently we were developing web application based on Vaadin and Spring (Core). Now we
I am developing a web application and i have used jquery validation as :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.