Giter VIP home page Giter VIP logo

Comments (10)

DavertMik avatar DavertMik commented on May 20, 2024

I'm working on Windows but I have no idea how to solve this encoding problems in WIndows console :(

from codeception.

freddy-mercury avatar freddy-mercury commented on May 20, 2024

So, you have the same problems (utf-8 on windows)?

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

I can't say I really have them. Usually I don't have tests with Cyrillic chars.
But the problems with them seems like a limitation of Windows, not a Codeception.

Do you know is there a way to fix this encoding issues?

from codeception.

tiger-seo avatar tiger-seo commented on May 20, 2024

What about PowerShell ?

from codeception.

aTei avatar aTei commented on May 20, 2024

Also have problem with Cyrrilic chars.
When I import database myself in PhpMyAdmin - all ok
When Codeception do it, Наруто changes to Ð�аруто.

from codeception.

DavertMik avatar DavertMik commented on May 20, 2024

Really, guys, no ideas :(
If you show me a blogpost or some material describing how to deal with all that windows ANSI chars, I will try to fix that. But I didn't succeed in fixing that yet.

from codeception.

aTei avatar aTei commented on May 20, 2024

When add data through framework (like Codeigniter), trouble not appears, but when use Codeceptions - appears.
Maybe it becouse codeception.phar in ANSI format, not UTF8 without BOM.
Maybe u must additional detect utf8 in dump (or set it in config) and use something like convert('windows-1251', 'utf8', $fileStr).

I think it is important bug. If u need dump with Cyrrilic, just say.

from codeception.

aTei avatar aTei commented on May 20, 2024

Hey :) We still here.
New idea:
If dumping from console - bug exists
If dump from php - no bug.

What u think about this?

from codeception.

gureedo avatar gureedo commented on May 20, 2024

Had same issue in phpunit and codeception.
Added in all entry points (framework entry, bootstrap files) this code:
mb_internal_encoding('UTF-8'); and problem gone :)

from codeception.

samdark avatar samdark commented on May 20, 2024

@gureedo just adding mb_internal_encoding('UTF-8'); won't help. Characters should be converted to the codepage used in order to be displayed proplerly in all cases.

from codeception.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.