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 8354233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:29:29+00:00 2026-06-09T09:29:29+00:00

I am trying to make a dir using a php in english and it’s

  • 0

I am trying to make a dir using a php in english and it’s working.
But when i try in hebrew, it creats the folder in gibrish like so:
׳”׳•׳¨׳“׳”| ׳׳©׳—׳§ ׳©׳•׳׳˜

how can i fix it?
thanks

  • 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-09T09:29:31+00:00Added an answer on June 9, 2026 at 9:29 am

    PHP has some Unicode support when dealing with strings, but internally PHP’s string type is single-byte and does not support multibyte encodings. If you save your PHP file in UTF-8 format, you can output strings in UTF-8 with the proper HTTP encodings, but many of PHP’s functions don’t support multi-byte strings. There are some that do, but still most that do not.

    I looked around in the PHP source and most of the filesystem functions like mkdir are not Unicode aware. They operate on single byte strings which is why you get the ASCII gibberish when you try to create a directory.

    You might try calling setlocale and setting it to he_IL before calling mkdir to see if this makes any difference.

    For more information:

    A string is series of characters, where a character is the same as a
    byte. This means that PHP only supports a 256-character set, and hence
    does not offer native Unicode support. See details of the string type.

    The details talk more about different encodings, functions that are multi-byte aware and different behavior based on whether or not Zend Multibyte support is enabled in PHP and how saving your files in different encodings effects strings within PHP.

    Unfortunately at this time, I don’t believe you will be able to create a directory containing multi-byte strings in PHP directly.

    Internally, the function mkdir calls this function mkdir in file.c which calls _php_stream_mkdir which uses the plain files wrapper to call php_mkdir_ex to ultimately create the directory using virtual_mkdir that uses the C mkdir function to create the directory.

    I think by the time it calls mkdir to create the directory on the file-system, all encodings have been lost and it is treated as a single-byte char * string.

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

Sidebar

Related Questions

Trying to make a small countdown timer in my app but it's not working.
Trying to make a simple number clicker control for BlackBerry 6/7, like this: At
I'm trying to make a game (using irrlicht engine with c++) where you can
I am trying to create bindings to the FUSE library using JNA , but
I am trying to make a simple application using Google App Engine. Below is
I'm trying to make a searchable phone/local business directory using Apache Lucene. I have
im trying to make a vbscript that would list all contents in dir and
I am trying to make my Makefiles platform conditional with statements like: ifeq ($(UNAME),
I'm trying to make a small game using both SFML and Box2D. I have
I'm trying to make google mock but I'm only getting one library: gmock_main.a Why

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.