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

  • Home
  • SEARCH
  • 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 659279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:01:36+00:00 2026-05-13T23:01:36+00:00

i’m trying to create nodes and taxonomy terms through a custom php script by

  • 0

i’m trying to create nodes and taxonomy terms through a custom php script by using the node_save() function.

I’m working on drupal 6.

It’s working well (thanks to previous questions on stackoverflow) except for accented letters.

Indeed, when a title or a taxonomy term contain “é”, “è” or “à”, the sentence is cut before those special characters.

For example, a title like that: “Bonjour les éléphants” will create a node with “Bonjour les ” as title.

I don’t know if it’s linked to my database or if i have to use a special encoding in php (iconv() blabla)

The fact is, for drupal titles, i can not use html encoding (for example: é is é in html) because drupal will render &eacute and not é…

When i create a taxonomy or a title manually, i have no problems and the accented letter is saved in the database as “é”.

Soo if you can help me to create terms and title with accented letters, that will be great : )

Thank you !

  • 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-05-13T23:01:36+00:00Added an answer on May 13, 2026 at 11:01 pm

    This kind of looks like some sort of encoding/charset problem…

    With Drupal, everything is encoded (and expected) in the UTF-8 charset.

    Not sure it’ll solve/fix your problem, but you should make sure that everything in your application is working with/in UTF-8 :

    • Your PHP files, containing your source-code, should be in UTF-8
      • There is probably some setting about that in your IDE/editor
      • This will ensure that the strings you hard-code are in UTF-8 too
    • When using some external data, before calling node_save on it, you must make sure it’s in UTF-8
      • The utf8_encode function might help
      • Or maybe mb_convert_encoding, depending on the charset used by your input data.

    I’ve run into exactly that problem of strings cut before accented characters a couple of times, and, each time, making sure the strings were passed as UTF-8 solved it — so maybe it’ll work for you too ^^

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I am trying to loop through a bunch of documents I have to put
I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.