P
P
Pavel_White2018-09-14 08:48:26
PHP
Pavel_White, 2018-09-14 08:48:26

UTF-8 with BOM VS UTF-8 without BOM?

In general, this is the case.
In HTML unicode, files without a BOM tag are displayed as scribbles, you can fix this by saving the file with a BOM tag.
In PHP unicode files, if you put a BOM tag, the session_start command at the beginning of the file gives an error:
Warning : session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at K:\home\mysite\ www\index.php:1) in K:\home\mysite\www\index.php on line 2
You can fix this error by saving the file without the BOM tag, but all Russian characters will turn into scribbles.
How to please both?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Alexander, 2018-09-14
@Pavel_White

In HTML unicode, files without a BOM tag are displayed as scribbles, you can fix this by saving the file with a BOM tag.

Save without BOM.

A
Adamos, 2018-09-14
@Adamos

In my memory, the BOM was really needed only in one case: to compile UTF-8 sources in Visual Studio, whose clumsy programmers could not cope with automatic recognition of the encoding and did not manage to make a setting that would allow the user to set the encoding forcibly.
On the web, it’s better to just forget about this crutch right away. If there are problems with it, then you are doing something wrong.

A
Antonio Solo, 2018-10-02
@solotony

Faced with Excel opening CSV files without BOM on Windows-1251

M
Mark Levin, 2015-03-31
@marklivein

Check out OnlyOffice. As a CRM system - like the norms.

P
Puma Thailand, 2015-03-30
@opium

It is logical that you need to choose a solution that suits you as much as possible in terms of most parameters, including the price and the missing functionality, complete it with self-written plugins.
Or adjust your processes to some kind of CRM

S
ShamblerR, 2015-03-30
@ShamblerR

Bitrix24 for up to 10 people is generally free!
then 5 per month if you need a bundle with 1s, already anlim version
If the box is then again included in the budget.
The project is Russian and is being actively developed by two industry leaders
Bitrix + 1c, so here you have all the cards in hand.
All of the above is included.
distrust of Bitrix in general, maybe someone will tell about it, I will be glad. - it contains 57% of all commercial sites of the Runet, if you do not trust it, then you have no one to trust at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question