Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runnig Codeception on Windows 7 #16

Closed
freddy-mercury opened this issue Apr 11, 2012 · 10 comments
Closed

Runnig Codeception on Windows 7 #16

freddy-mercury opened this issue Apr 11, 2012 · 10 comments
Assignees
Labels

Comments

@freddy-mercury
Copy link

Trying to run it on Windows 7, but there are problems with encoding. Running tests on Linux work fine.

Did you try to do this?

p.s. Test contain Cyrillic letters.

@DavertMik
Copy link
Member

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

@freddy-mercury
Copy link
Author

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

@DavertMik
Copy link
Member

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?

@tiger-seo
Copy link
Member

What about PowerShell ?

@aTei
Copy link

aTei commented Oct 10, 2012

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

@DavertMik
Copy link
Member

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.

@aTei
Copy link

aTei commented Oct 10, 2012

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.

@aTei
Copy link

aTei commented Nov 15, 2012

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

What u think about this?

@gureedo
Copy link
Contributor

gureedo commented Jul 9, 2014

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 :)

@samdark samdark added this to the 2.0.3 milestone Jul 9, 2014
@samdark samdark added the bug label Jul 9, 2014
@samdark samdark self-assigned this Jul 12, 2014
@samdark samdark modified the milestones: 2.0.4, 2.0.3 Jul 12, 2014
@samdark
Copy link
Collaborator

samdark commented Jul 13, 2014

@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.

@samdark samdark modified the milestones: 2.0.5, 2.0.6 Aug 22, 2014
@DavertMik DavertMik modified the milestones: 2.0.7, 2.0.6 Oct 3, 2014
@DavertMik DavertMik removed this from the 2.0.7 milestone Oct 12, 2014
Naktibalda pushed a commit to Codeception/module-phpbrowser that referenced this issue Sep 15, 2019
Naktibalda pushed a commit to Codeception/module-webdriver that referenced this issue Sep 15, 2019
Naktibalda pushed a commit to Codeception/lib-innerbrowser that referenced this issue Sep 22, 2019
Naktibalda pushed a commit to Naktibalda/Codeception that referenced this issue Dec 28, 2020
…ption#16)

Fix Codeception#15

- change exception to instance of ExpectationFailedException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants